diff options
author | Adam Jackson <ajax@redhat.com> | 2021-03-24 12:48:21 -0400 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2021-03-30 20:33:51 +0000 |
commit | 4fbe1cbe4cc594b2ef38e77eaf8f9f7a3f6fad66 (patch) | |
tree | 2326ce1c4cad0080f121a8bcbf4b0d6606ba5384 | |
parent | d21b8afa3defa0f3bb88a0df1ae00c20c3cea099 (diff) |
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>
-rw-r--r-- | src/mesa/drivers/dri/common/utils.c | 5 | ||||
-rw-r--r-- | src/mesa/main/mtypes.h | 3 |
2 files changed, 1 insertions, 7 deletions
diff --git a/src/mesa/drivers/dri/common/utils.c b/src/mesa/drivers/dri/common/utils.c index 7da8768a3be..265362b26e1 100644 --- a/src/mesa/drivers/dri/common/utils.c +++ b/src/mesa/drivers/dri/common/utils.c @@ -345,7 +345,6 @@ driCreateConfigs(mesa_format format, modes->accumGreenBits = 16 * j; modes->accumBlueBits = 16 * j; modes->accumAlphaBits = (masks[3] != 0) ? 16 * j : 0; - modes->visualRating = (j == 0) ? GLX_NONE : GLX_SLOW_CONFIG; modes->stencilBits = stencil_bits[k]; modes->depthBits = depth_bits[k]; @@ -447,9 +446,7 @@ driGetConfigAttribIndex(const __DRIconfig *config, *value |= __DRI_ATTRIB_FLOAT_BIT; break; case __DRI_ATTRIB_CONFIG_CAVEAT: - if (config->modes.visualRating == GLX_NON_CONFORMANT_CONFIG) - *value = __DRI_ATTRIB_NON_CONFORMANT_CONFIG; - else if (config->modes.visualRating == GLX_SLOW_CONFIG) + if (config->modes.accumRedBits != 0) *value = __DRI_ATTRIB_SLOW_BIT; else *value = 0; diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 33f87b2ee80..e84ec6b939d 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -170,9 +170,6 @@ struct gl_config GLint depthBits; GLint stencilBits; - /* EXT_visual_rating / GLX 1.2 */ - GLint visualRating; - /* ARB_multisample / SGIS_multisample */ GLint sampleBuffers; GLuint samples; |