mesa/st: remove can_dither from st_context

can_dither is a direct copy of screen->caps.dithering.
Read the cap from the screen directly.

Reviewed-by: Marek Olšák <maraeo@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41184>
This commit is contained in:
Vishnu Vardan 2026-04-25 23:45:38 -04:00 committed by Marge Bot
parent 06c0ffadee
commit 51b059dd11
3 changed files with 1 additions and 4 deletions

View file

@ -333,7 +333,7 @@ st_update_blend( struct st_context *st )
/* no blending / logicop */
}
if (st->can_dither)
if (st->screen->caps.dithering)
blend->dither = ctx->Color.DitherFlag;
if (_mesa_is_multisample_enabled(ctx) &&

View file

@ -583,8 +583,6 @@ st_create_context_priv(struct gl_context *ctx, struct pipe_context *pipe,
PIPE_QUIRK_TEXTURE_BORDER_COLOR_SWIZZLE_ALPHA_NOT_W);
ctx->Const.GLSLHasHalfFloatPacking =
screen->caps.shader_pack_half_float;
st->can_dither =
screen->caps.dithering;
st->lower_flatshade =
!screen->caps.flatshade;
st->lower_alpha_test =

View file

@ -159,7 +159,6 @@ struct st_context
bool force_compute_based_texture_transfer;
bool force_specialized_compute_transfer;
bool force_persample_in_shader;
bool can_dither;
bool can_bind_const_buffer_as_vertex;
bool lower_flatshade;
bool lower_alpha_test;