[Mesa-dev] [Bug 101703] No stencil buffer allocated when requested by GLUT

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Jul 6 07:32:50 UTC 2017


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

            Bug ID: 101703
           Summary: No stencil buffer allocated when requested by GLUT
           Product: Mesa
           Version: 17.0
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Other
          Assignee: mesa-dev at lists.freedesktop.org
          Reporter: o.lauffenburger at topsolid.com
        QA Contact: mesa-dev at lists.freedesktop.org

Created attachment 132472
  --> https://bugs.freedesktop.org/attachment.cgi?id=132472&action=edit
Alternative implementation of stw_pixelformat_choose

I create an OpenGL context with Mesa 17.0 Gallium + software rasterizer with
the following GLUT command:

glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH | GLUT_STENCIL)

Then no stencil buffer is allocated.

The problem is that the selection logic of ChoosePixelFormat() gives more
importance to the 32-bit color than to the 8-bit stencil.

I have changed the implementation of stw_pixelformat_choose() in
\src\gallium\state_trackers\wgl\stw_pixelformat.c to give the highest priority
to features requested but not available, then a lower priority to features with
less precision allocated than requested, then the lowest priority to features
with more precision allocated than requested.

My implementation is in the attached file.

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


More information about the mesa-dev mailing list