summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2021-03-24 12:29:02 -0400
committerMarge Bot <eric+marge@anholt.net>2021-03-30 20:33:51 +0000
commit78dfab95b80a2ef39f7950b56571785434b4b9b5 (patch)
treebdd862a712e894fad4607eda03fd06211212f08d
parentc17d35b4029a58e7c29b5024dbc0f4da2b45f893 (diff)
mesa: Remove unused gl_config::level
This is the (GLX) framebuffer overlay level, and it's never set to anything interesting. 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.c2
-rw-r--r--src/mesa/main/context.c1
-rw-r--r--src/mesa/main/mtypes.h2
3 files changed, 1 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/common/utils.c b/src/mesa/drivers/dri/common/utils.c
index a11817e450a..671d33a1656 100644
--- a/src/mesa/drivers/dri/common/utils.c
+++ b/src/mesa/drivers/dri/common/utils.c
@@ -417,10 +417,10 @@ driGetConfigAttribIndex(const __DRIconfig *config,
{
switch (index + 1) {
__ATTRIB(__DRI_ATTRIB_BUFFER_SIZE, rgbBits);
- __ATTRIB(__DRI_ATTRIB_LEVEL, level);
__ATTRIB(__DRI_ATTRIB_RED_SIZE, redBits);
__ATTRIB(__DRI_ATTRIB_GREEN_SIZE, greenBits);
__ATTRIB(__DRI_ATTRIB_BLUE_SIZE, blueBits);
+ case __DRI_ATTRIB_LEVEL:
case __DRI_ATTRIB_LUMINANCE_SIZE:
*value = 0;
break;
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index 40ab6e3f183..eef9106a3c3 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -306,7 +306,6 @@ _mesa_initialize_visual( struct gl_config *vis,
vis->accumAlphaBits = accumAlphaBits;
vis->numAuxBuffers = 0;
- vis->level = 0;
vis->sampleBuffers = numSamples > 0 ? 1 : 0;
vis->samples = numSamples;
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
index 4c77561ef60..e2046883062 100644
--- a/src/mesa/main/mtypes.h
+++ b/src/mesa/main/mtypes.h
@@ -177,8 +177,6 @@ struct gl_config
GLint numAuxBuffers;
- GLint level;
-
/* EXT_visual_rating / GLX 1.2 */
GLint visualRating;