mesa/st: remove has_indep_blend_enable from st_context

has_indep_blend_enable is a direct copy of
screen->caps.indep_blend_enable.
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:39:20 -04:00 committed by Marge Bot
parent f046e4d2fe
commit 9650f8fd34
3 changed files with 1 additions and 4 deletions

View file

@ -149,7 +149,7 @@ allow_rgb_colormask_promotion(const struct st_context *st,
/* We can support different per-RT promotion decisions if we driver
* supports independent blending (but we must actually enable it).
*/
if (st->has_indep_blend_enable && !same) {
if (st->screen->caps.indep_blend_enable && !same) {
*need_independent_blend = true;
return true;
}

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->has_indep_blend_enable =
screen->caps.indep_blend_enable;
st->has_indep_blend_func =
screen->caps.indep_blend_func;
st->can_dither =

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 has_indep_blend_enable;
bool has_indep_blend_func;
bool can_dither;
bool can_bind_const_buffer_as_vertex;