diff options
author | Matt Turner <[email protected]> | 2014-04-09 12:01:49 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2014-04-16 22:46:44 -0700 |
commit | 6541f1b4d02b52e19c95dcfb07ef5e0e81a57955 (patch) | |
tree | 7455bee777d9bc4d0b5db0967384ebd41f3568d2 /src/mesa/drivers/dri/i965/brw_shader.cpp | |
parent | cb6566f9df61bfc84c27b382ba3e494bbac782d9 (diff) |
i965: Add reads_accumulator_implicitly() function.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_shader.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_shader.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_shader.cpp b/src/mesa/drivers/dri/i965/brw_shader.cpp index c32e66c9f80..6e74803e988 100644 --- a/src/mesa/drivers/dri/i965/brw_shader.cpp +++ b/src/mesa/drivers/dri/i965/brw_shader.cpp @@ -663,6 +663,19 @@ backend_instruction::can_do_saturate() const } bool +backend_instruction::reads_accumulator_implicitly() const +{ + switch (opcode) { + case BRW_OPCODE_MAC: + case BRW_OPCODE_MACH: + case BRW_OPCODE_SADA2: + return true; + default: + return false; + } +} + +bool backend_instruction::has_side_effects() const { switch (opcode) { |