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>
This commit is contained in:
Adam Jackson 2021-03-24 12:29:02 -04:00 committed by Marge Bot
parent c17d35b402
commit 78dfab95b8
3 changed files with 1 additions and 4 deletions

View File

@ -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;

View File

@ -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;

View File

@ -177,8 +177,6 @@ struct gl_config
GLint numAuxBuffers;
GLint level;
/* EXT_visual_rating / GLX 1.2 */
GLint visualRating;