diff options
author | Matt Turner <[email protected]> | 2015-02-28 13:36:21 -0800 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2015-03-07 17:21:12 +0000 |
commit | 560fb4ee450659ed603338301f8d0af827d56f16 (patch) | |
tree | 106c10ad94153f34427e544d052e26cb564eb46a | |
parent | 446aa309e18e0c5a6335d7dd9688a4e521d29043 (diff) |
i965: Consider scratch writes to have side effects.
We could do better by tracking scratch reads and writes.
Cc: 10.5 <[email protected]>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=88793
Reviewed-by: Jason Ekstrand <[email protected]>
(cherry picked from commit da20bf068ef0f816968d9bc4dfea81facf0fd680)
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_shader.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_shader.cpp b/src/mesa/drivers/dri/i965/brw_shader.cpp index 31ce3db73a7..69d3a9185b1 100644 --- a/src/mesa/drivers/dri/i965/brw_shader.cpp +++ b/src/mesa/drivers/dri/i965/brw_shader.cpp @@ -945,6 +945,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; |