[Mesa-dev] [PATCH] radeonsi: set descriptor dirty mask on shader buffer unbind

Nicolai Hähnle nhaehnle at gmail.com
Fri Jun 3 13:20:46 UTC 2016


From: Nicolai Hähnle <nicolai.haehnle at amd.com>

Found randomly while skimming the code. This might have caused VM faults in
robustness tests.

Cc: 12.0 <mesa-stable at lists.freedesktop.org>
---
 src/gallium/drivers/radeonsi/si_descriptors.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/radeonsi/si_descriptors.c b/src/gallium/drivers/radeonsi/si_descriptors.c
index d66996a..81bd6d6 100644
--- a/src/gallium/drivers/radeonsi/si_descriptors.c
+++ b/src/gallium/drivers/radeonsi/si_descriptors.c
@@ -968,6 +968,7 @@ static void si_set_shader_buffers(struct pipe_context *ctx, unsigned shader,
 			pipe_resource_reference(&buffers->buffers[slot], NULL);
 			memset(desc, 0, sizeof(uint32_t) * 4);
 			buffers->desc.enabled_mask &= ~(1u << slot);
+			buffers->desc.dirty_mask |= 1u << slot;
 			continue;
 		}
 
-- 
2.7.4



More information about the mesa-dev mailing list