Mesa (master): radeonsi: allow instance_count == 0 on chips that handle it correctly
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jan 20 22:13:28 UTC 2021
Module: Mesa
Branch: master
Commit: bc0508ad38d336d53a6cfbd39e266f76fb4e3ebb
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=bc0508ad38d336d53a6cfbd39e266f76fb4e3ebb
Author: Marek Olšák <marek.olsak at amd.com>
Date: Mon Jan 11 06:35:43 2021 -0500
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 at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8600>
---
src/gallium/drivers/radeonsi/si_state_draw.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
More information about the mesa-commit
mailing list