[Mesa-dev] [PATCH] radeonsi: mark ssbo and images descriptor pointers dirty at beginning of CS

Nicolai Hähnle nhaehnle at gmail.com
Wed Apr 13 17:19:06 UTC 2016


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

Without this, we were getting non-deterministic VM faults under high pressure.
---
 src/gallium/drivers/radeonsi/si_descriptors.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/gallium/drivers/radeonsi/si_descriptors.c b/src/gallium/drivers/radeonsi/si_descriptors.c
index b5557d8..7fc1461 100644
--- a/src/gallium/drivers/radeonsi/si_descriptors.c
+++ b/src/gallium/drivers/radeonsi/si_descriptors.c
@@ -1192,7 +1192,9 @@ static void si_mark_shader_pointers_dirty(struct si_context *sctx,
 {
 	sctx->const_buffers[shader].desc.pointer_dirty = true;
 	sctx->rw_buffers[shader].desc.pointer_dirty = true;
+	sctx->shader_buffers[shader].desc.pointer_dirty = true;
 	sctx->samplers[shader].views.desc.pointer_dirty = true;
+	sctx->images[shader].desc.pointer_dirty = true;
 
 	if (shader == PIPE_SHADER_VERTEX)
 		sctx->vertex_buffers.pointer_dirty = true;
-- 
2.5.0



More information about the mesa-dev mailing list