summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2021-01-11 06:35:43 -0500
committerMarge Bot <eric+marge@anholt.net>2021-01-20 21:53:13 +0000
commitbc0508ad38d336d53a6cfbd39e266f76fb4e3ebb (patch)
treef4e53717d5cbd382b298c62373b6c4ee13fd11f0
parent76d6351dab7e716775ec965a2bb467713d97d03b (diff)
radeonsi: allow instance_count == 0 on chips that handle it correctly
Let's remove this overhead. Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8600>
-rw-r--r--src/gallium/drivers/radeonsi/si_state_draw.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state_draw.cpp b/src/gallium/drivers/radeonsi/si_state_draw.cpp
index 977a3028288..e2beac6f7fa 100644
--- a/src/gallium/drivers/radeonsi/si_state_draw.cpp
+++ b/src/gallium/drivers/radeonsi/si_state_draw.cpp
@@ -1631,7 +1631,7 @@ static void si_draw_vbo(struct pipe_context *ctx,
* no workaround for indirect draws, but we can at least skip
* direct draws.
*/
- if (unlikely(!indirect && !instance_count))
+ if (GFX_VERSION <= GFX7 && unlikely(!indirect && !instance_count))
return;
struct si_shader_selector *vs = sctx->vs_shader.cso;