[Mesa-dev] [PATCH] radv: fix prefetching of vertex shader and VBOs on SI

Samuel Pitoiset samuel.pitoiset at gmail.com
Mon Apr 9 12:38:16 UTC 2018


Forgot one check... Too many mistakes for a simple change.

Fixes: f1d7c16e85 ("radv: fix prefetching compute shaders on CIK and older chips")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105952
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
 src/amd/vulkan/radv_cmd_buffer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c
index e8a6d9be15..6cd798dbfc 100644
--- a/src/amd/vulkan/radv_cmd_buffer.c
+++ b/src/amd/vulkan/radv_cmd_buffer.c
@@ -3083,7 +3083,7 @@ radv_draw(struct radv_cmd_buffer *cmd_buffer,
 		 */
 		si_emit_cache_flush(cmd_buffer);
 
-		if (cmd_buffer->state.prefetch_L2_mask) {
+		if (has_prefetch && cmd_buffer->state.prefetch_L2_mask) {
 			/* Only prefetch the vertex shader and VBO descriptors
 			 * in order to start the draw as soon as possible.
 			 */
-- 
2.17.0



More information about the mesa-dev mailing list