From da20bf068ef0f816968d9bc4dfea81facf0fd680 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Sat, 28 Feb 2015 13:36:21 -0800 Subject: [PATCH] i965: Consider scratch writes to have side effects. We could do better by tracking scratch reads and writes. Cc: 10.5 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=88793 Reviewed-by: Jason Ekstrand --- src/mesa/drivers/dri/i965/brw_shader.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/drivers/dri/i965/brw_shader.cpp b/src/mesa/drivers/dri/i965/brw_shader.cpp index fbb20bc06bb..ec3cfcbd255 100644 --- a/src/mesa/drivers/dri/i965/brw_shader.cpp +++ b/src/mesa/drivers/dri/i965/brw_shader.cpp @@ -963,6 +963,7 @@ backend_instruction::has_side_effects() const { switch (opcode) { case SHADER_OPCODE_UNTYPED_ATOMIC: + case SHADER_OPCODE_GEN4_SCRATCH_WRITE: case SHADER_OPCODE_URB_WRITE_SIMD8: case FS_OPCODE_FB_WRITE: return true; -- 2.30.2