[Mesa-dev] [Bug 105901] Warn about mipmap-incomplete texture being used

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Apr 5 07:26:56 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=105901

            Bug ID: 105901
           Summary: Warn about mipmap-incomplete texture being used
           Product: Mesa
           Version: 17.2
          Hardware: Other
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: medium
         Component: Other
          Assignee: mesa-dev at lists.freedesktop.org
          Reporter: b7.10110111 at gmail.com
        QA Contact: mesa-dev at lists.freedesktop.org

Usage of textures with incomplete mipmap is a common OpenGL pitfall [1], since
by default GL_TEXTURE_MIN_FILTER is GL_NEAREST_MIPMAP_LINEAR. Thus it'd be very
useful if Mesa called debug callbacks on such errors.

A test case can be found in the attachment. When run, it first tries to draw a
full-screen textured quad with a mipmap-incomplete texture, and on a key press
it toggles TEXTURE_MIN_FILTER between NEAREST and NEAREST_MIPMAP_LINEAR.

Binary nvidia driver gives me a useful debug notification, leading to the
following output from the test program on each frame with mipmap-incomplete
texture use:

> debug callback called, notification: Texture state usage warning: Texture 1 has no mipmaps, while its min filter requires mipmap.

It would be very useful if Mesa also did this. Currently (as of 17.2) it
doesn't emit any relevant messages.

[1]:
https://www.opengl.org/archives/resources/features/KilgardTechniques/oglpitfall/

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180405/32f532d0/attachment.html>


More information about the mesa-dev mailing list