Mesa (main): radeonsi: enable shader culling for indirect draws
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Oct 29 06:53:26 UTC 2021
Module: Mesa
Branch: main
Commit: 98f696c972f9415892c19b405217285003234058
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=98f696c972f9415892c19b405217285003234058
Author: Marek Olšák <marek.olsak at amd.com>
Date: Wed Oct 27 01:25:49 2021 -0400
radeonsi: enable shader culling for indirect draws
It was mistakenly disabled, decreasing performance a lot.
Only valid for Mesa 21.3.
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Cc: 21.3 <mesa-stable at lists.freedesktop.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13539>
---
src/gallium/drivers/radeonsi/si_state_draw.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/gallium/drivers/radeonsi/si_state_draw.cpp b/src/gallium/drivers/radeonsi/si_state_draw.cpp
index 896abcf9e80..960c2469f2b 100644
--- a/src/gallium/drivers/radeonsi/si_state_draw.cpp
+++ b/src/gallium/drivers/radeonsi/si_state_draw.cpp
@@ -2210,6 +2210,7 @@ static void si_draw(struct pipe_context *ctx,
si_resource(indirect->indirect_draw_count)->TC_L2_dirty = false;
}
}
+ total_direct_count = INT_MAX; /* just set something other than 0 to enable shader culling */
} else {
total_direct_count = min_direct_count = draws[0].count;
More information about the mesa-commit
mailing list