diff --git a/src/mesa/main/blit.c b/src/mesa/main/blit.c index 37f9d862773..018c11880d1 100644 --- a/src/mesa/main/blit.c +++ b/src/mesa/main/blit.c @@ -505,7 +505,7 @@ do_blit_framebuffer(struct gl_context *ctx, st_window_rectangles_to_blit(ctx, &blit); blit.filter = pFilter; - blit.render_condition_enable = st->has_conditional_render; + blit.render_condition_enable = st->screen->caps.conditional_render; blit.alpha_blend = false; if (mask & GL_COLOR_BUFFER_BIT) { diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c index 53ce3ef2114..80d8d6d8799 100644 --- a/src/mesa/state_tracker/st_context.c +++ b/src/mesa/state_tracker/st_context.c @@ -593,8 +593,6 @@ st_create_context_priv(struct gl_context *ctx, struct pipe_context *pipe, break; default: break; } - st->has_conditional_render = - screen->caps.conditional_render; st->lower_rect_tex = !screen->caps.texrect; st->allow_st_finalize_nir_twice = diff --git a/src/mesa/state_tracker/st_context.h b/src/mesa/state_tracker/st_context.h index 53eae1df676..9f576737ec8 100644 --- a/src/mesa/state_tracker/st_context.h +++ b/src/mesa/state_tracker/st_context.h @@ -162,7 +162,6 @@ struct st_context bool can_bind_const_buffer_as_vertex; bool lower_point_size; bool add_point_size; - bool has_conditional_render; bool lower_rect_tex; /* There are consequences for drivers wanting to call st_finalize_nir