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>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38656>
This commit is contained in:
Erik Faye-Lund 2025-11-25 13:54:46 +01:00 committed by Marge Bot
parent b92719f926
commit 4916cee439
3 changed files with 1 additions and 10 deletions

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 */