From: Matt Turner Date: Sat, 28 Feb 2015 21:36:21 +0000 (-0800) Subject: i965: Consider scratch writes to have side effects. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=da20bf068ef0f816968d9bc4dfea81facf0fd680;p=mesa.git 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 --- 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;