mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-04 00:08:16 +02:00
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:
parent
06c0ffadee
commit
51b059dd11
3 changed files with 1 additions and 4 deletions
|
|
@ -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) &&
|
||||
|
|
|
|||
|
|
@ -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 =
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue