mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
radeonsi: remove r600_common_context::set_occlusion_query_state
and remove unused old_enable parameter. Acked-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
parent
5ed8b54ffe
commit
fbf1bf9b8f
4 changed files with 5 additions and 11 deletions
|
|
@ -505,11 +505,6 @@ struct r600_common_context {
|
|||
* the invalidation. */
|
||||
void (*rebind_buffer)(struct pipe_context *ctx, struct pipe_resource *buf,
|
||||
uint64_t old_gpu_address);
|
||||
|
||||
/* Enable or disable occlusion queries. */
|
||||
void (*set_occlusion_query_state)(struct pipe_context *ctx,
|
||||
bool old_enable,
|
||||
bool old_perfect_enable);
|
||||
};
|
||||
|
||||
/* r600_buffer_common.c */
|
||||
|
|
|
|||
|
|
@ -713,8 +713,7 @@ static void r600_update_occlusion_query_state(struct r600_common_context *rctx,
|
|||
perfect_enable = rctx->num_perfect_occlusion_queries != 0;
|
||||
|
||||
if (enable != old_enable || perfect_enable != old_perfect_enable) {
|
||||
rctx->set_occlusion_query_state(&rctx->b, old_enable,
|
||||
old_perfect_enable);
|
||||
si_set_occlusion_query_state(&rctx->b, old_perfect_enable);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1347,9 +1347,8 @@ static void si_set_active_query_state(struct pipe_context *ctx, boolean enable)
|
|||
}
|
||||
}
|
||||
|
||||
static void si_set_occlusion_query_state(struct pipe_context *ctx,
|
||||
bool old_enable,
|
||||
bool old_perfect_enable)
|
||||
void si_set_occlusion_query_state(struct pipe_context *ctx,
|
||||
bool old_perfect_enable)
|
||||
{
|
||||
struct si_context *sctx = (struct si_context*)ctx;
|
||||
|
||||
|
|
@ -4588,7 +4587,6 @@ void si_init_state_functions(struct si_context *sctx)
|
|||
sctx->b.b.set_tess_state = si_set_tess_state;
|
||||
|
||||
sctx->b.b.set_active_query_state = si_set_active_query_state;
|
||||
sctx->b.set_occlusion_query_state = si_set_occlusion_query_state;
|
||||
|
||||
sctx->b.b.draw_vbo = si_draw_vbo;
|
||||
|
||||
|
|
|
|||
|
|
@ -404,6 +404,8 @@ si_create_sampler_view_custom(struct pipe_context *ctx,
|
|||
void si_update_fb_dirtiness_after_rendering(struct si_context *sctx);
|
||||
void si_update_ps_iter_samples(struct si_context *sctx);
|
||||
void si_save_qbo_state(struct pipe_context *ctx, struct r600_qbo_state *st);
|
||||
void si_set_occlusion_query_state(struct pipe_context *ctx,
|
||||
bool old_perfect_enable);
|
||||
|
||||
/* si_state_binning.c */
|
||||
void si_emit_dpbb_state(struct si_context *sctx, struct r600_atom *state);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue