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@lists.freedesktop.org
Reporter: o.lauffenbur...@topsolid.com
QA Contact: mesa-dev@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.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev