Module: Mesa
Branch: master
Commit: 4fbe1cbe4cc594b2ef38e77eaf8f9f7a3f6fad66
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=4fbe1cbe4cc594b2ef38e77eaf8f9f7a3f6fad66

Author: Adam Jackson <[email protected]>
Date:   Wed Mar 24 12:48:21 2021 -0400

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 <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9817>

---

 src/mesa/drivers/dri/common/utils.c | 5 +----
 src/mesa/main/mtypes.h              | 3 ---
 2 files changed, 1 insertion(+), 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;

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to