mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-19 16:40:36 +02:00
mesa: Stop tracking visual rating in gl_config
We never create non-conformant configs, and we can predict slow-or-not purely from the accum-buffer-ness of the config. Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9817>
This commit is contained in:
parent
d21b8afa3d
commit
4fbe1cbe4c
2 changed files with 1 additions and 7 deletions
|
|
@ -345,7 +345,6 @@ driCreateConfigs(mesa_format format,
|
||||||
modes->accumGreenBits = 16 * j;
|
modes->accumGreenBits = 16 * j;
|
||||||
modes->accumBlueBits = 16 * j;
|
modes->accumBlueBits = 16 * j;
|
||||||
modes->accumAlphaBits = (masks[3] != 0) ? 16 * j : 0;
|
modes->accumAlphaBits = (masks[3] != 0) ? 16 * j : 0;
|
||||||
modes->visualRating = (j == 0) ? GLX_NONE : GLX_SLOW_CONFIG;
|
|
||||||
|
|
||||||
modes->stencilBits = stencil_bits[k];
|
modes->stencilBits = stencil_bits[k];
|
||||||
modes->depthBits = depth_bits[k];
|
modes->depthBits = depth_bits[k];
|
||||||
|
|
@ -447,9 +446,7 @@ driGetConfigAttribIndex(const __DRIconfig *config,
|
||||||
*value |= __DRI_ATTRIB_FLOAT_BIT;
|
*value |= __DRI_ATTRIB_FLOAT_BIT;
|
||||||
break;
|
break;
|
||||||
case __DRI_ATTRIB_CONFIG_CAVEAT:
|
case __DRI_ATTRIB_CONFIG_CAVEAT:
|
||||||
if (config->modes.visualRating == GLX_NON_CONFORMANT_CONFIG)
|
if (config->modes.accumRedBits != 0)
|
||||||
*value = __DRI_ATTRIB_NON_CONFORMANT_CONFIG;
|
|
||||||
else if (config->modes.visualRating == GLX_SLOW_CONFIG)
|
|
||||||
*value = __DRI_ATTRIB_SLOW_BIT;
|
*value = __DRI_ATTRIB_SLOW_BIT;
|
||||||
else
|
else
|
||||||
*value = 0;
|
*value = 0;
|
||||||
|
|
|
||||||
|
|
@ -170,9 +170,6 @@ struct gl_config
|
||||||
GLint depthBits;
|
GLint depthBits;
|
||||||
GLint stencilBits;
|
GLint stencilBits;
|
||||||
|
|
||||||
/* EXT_visual_rating / GLX 1.2 */
|
|
||||||
GLint visualRating;
|
|
||||||
|
|
||||||
/* ARB_multisample / SGIS_multisample */
|
/* ARB_multisample / SGIS_multisample */
|
||||||
GLint sampleBuffers;
|
GLint sampleBuffers;
|
||||||
GLuint samples;
|
GLuint samples;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue