diff options
author | Matt Turner <mattst88@gmail.com> | 2013-11-26 13:49:31 -0800 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2013-12-04 20:05:42 -0800 |
commit | 8786f381eca2c818e381af74feda8d4a22c0e411 (patch) | |
tree | d6a743ccf200477c3e565badbe69f53aee2f4738 /src/mesa | |
parent | ba84800275bd949d30125da7a1632ac62e84d8a0 (diff) | |
download | external_mesa3d-8786f381eca2c818e381af74feda8d4a22c0e411.zip external_mesa3d-8786f381eca2c818e381af74feda8d4a22c0e411.tar.gz external_mesa3d-8786f381eca2c818e381af74feda8d4a22c0e411.tar.bz2 |
i965: Allow constant propagation into ASR and BFI1.
Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp | 2 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp b/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp index accd9bd..a1720cd 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp @@ -344,6 +344,8 @@ fs_visitor::try_constant_propagate(fs_inst *inst, acp_entry *entry) progress = true; break; + case BRW_OPCODE_BFI1: + case BRW_OPCODE_ASR: case BRW_OPCODE_SHL: case BRW_OPCODE_SHR: case BRW_OPCODE_ADDC: diff --git a/src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp b/src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp index 06f0e99..c9c7390 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp @@ -95,6 +95,8 @@ try_constant_propagation(vec4_instruction *inst, int arg, src_reg *values[4]) inst->src[arg] = value; return true; + case BRW_OPCODE_BFI1: + case BRW_OPCODE_ASR: case BRW_OPCODE_SHL: case BRW_OPCODE_SHR: case BRW_OPCODE_ADDC: |