mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-04 08:48:14 +02:00
mesa/st: remove has_conditional_render from st_context
has_conditional_render is a direct copy of screen->caps.conditional_render. 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
e03313c06a
commit
f5b5929a1a
3 changed files with 1 additions and 4 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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 =
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue