mesa/main: remove unused array

The values here are only ever set to GL_TRUE, and never ever changed, so
let's just rip it out.

Fixes: 37190ad932 ("mesa: drop texformat code this isn't used.")
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
(cherry picked from commit 4916cee439)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41540>
This commit is contained in:
Erik Faye-Lund 2025-11-25 13:54:46 +01:00 committed by Eric Engestrom
parent cce6f08940
commit 287987ffc8
4 changed files with 2 additions and 11 deletions

View file

@ -764,7 +764,7 @@
"description": "mesa/main: remove unused array",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "37190ad932a8e7e67c69343249e895313790ef7b",
"notes": null

View file

@ -1004,13 +1004,6 @@ _mesa_initialize_context(struct gl_context *ctx,
_mesa_reset_vertex_processing_mode(ctx);
/* Mesa core handles all the formats that mesa core knows about.
* Drivers will want to override this list with just the formats
* they can handle.
*/
memset(&ctx->TextureFormatSupported, GL_TRUE,
sizeof(ctx->TextureFormatSupported));
switch (ctx->API) {
case API_OPENGL_COMPAT:
case API_OPENGL_CORE:

View file

@ -4176,7 +4176,7 @@ _mesa_tex_format_from_format_and_type(const struct gl_context *ctx,
if (_mesa_format_is_mesa_array_format(format))
format = _mesa_format_from_array_format(format);
if (format == MESA_FORMAT_NONE || !ctx->TextureFormatSupported[format])
if (format == MESA_FORMAT_NONE)
return MESA_FORMAT_NONE;
return format;

View file

@ -3582,8 +3582,6 @@ struct gl_context
*/
GLboolean HasConfig;
GLboolean TextureFormatSupported[MESA_FORMAT_COUNT];
GLboolean RasterDiscard; /**< GL_RASTERIZER_DISCARD */
GLboolean IntelConservativeRasterization; /**< GL_CONSERVATIVE_RASTERIZATION_INTEL */
GLboolean ConservativeRasterization; /**< GL_CONSERVATIVE_RASTERIZATION_NV */