mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 05:38:16 +02:00
radeonsi: move *rs to its only use in si_draw
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18195>
This commit is contained in:
parent
e19363a44e
commit
d8125427cd
1 changed files with 2 additions and 1 deletions
|
|
@ -2343,7 +2343,6 @@ static void si_draw(struct pipe_context *ctx,
|
|||
}
|
||||
}
|
||||
|
||||
struct si_state_rasterizer *rs = sctx->queued.named.rasterizer;
|
||||
bool primitive_restart =
|
||||
info->primitive_restart &&
|
||||
(!sctx->screen->options.prim_restart_tri_strips_only ||
|
||||
|
|
@ -2414,6 +2413,8 @@ static void si_draw(struct pipe_context *ctx,
|
|||
* until we pass the total_direct_count check and then it stays enabled until
|
||||
* the shader is changed. This eliminates most culling on/off state changes. */
|
||||
(old_ngg_culling || total_direct_count > hw_vs->ngg_cull_vert_threshold)) {
|
||||
struct si_state_rasterizer *rs = sctx->queued.named.rasterizer;
|
||||
|
||||
/* Check that the current shader allows culling. */
|
||||
assert(hw_vs->ngg_cull_vert_threshold != UINT_MAX);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue