mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-04 00:08:16 +02:00
mesa/st: remove validate_all_dirty_states from st_context
validate_all_dirty_states is a direct copy of screen->caps.validate_all_dirty_states. 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
8ad3f20abf
commit
ff571df163
3 changed files with 1 additions and 6 deletions
|
|
@ -455,7 +455,7 @@ update_program(struct gl_context *ctx)
|
|||
_mesa_set_active_states(ctx);
|
||||
|
||||
/* Some drivers need to clean up previous states too */
|
||||
if (st->validate_all_dirty_states)
|
||||
if (st->screen->caps.validate_all_dirty_states)
|
||||
ST_SET_STATES(st->active_states, dirty);
|
||||
|
||||
return _NEW_PROGRAM;
|
||||
|
|
|
|||
|
|
@ -594,10 +594,6 @@ st_create_context_priv(struct gl_context *ctx, struct pipe_context *pipe,
|
|||
st->has_hw_atomics =
|
||||
screen->shader_caps[MESA_SHADER_FRAGMENT].max_hw_atomic_counters
|
||||
? true : false;
|
||||
|
||||
st->validate_all_dirty_states =
|
||||
screen->caps.validate_all_dirty_states
|
||||
? true : false;
|
||||
st->can_null_texture =
|
||||
screen->caps.null_textures
|
||||
? true : false;
|
||||
|
|
|
|||
|
|
@ -176,7 +176,6 @@ struct st_context
|
|||
bool draw_needs_minmax_index;
|
||||
bool has_hw_atomics;
|
||||
|
||||
bool validate_all_dirty_states;
|
||||
bool can_null_texture;
|
||||
bool is_threaded_context;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue