diff options
author | Ilia Mirkin <[email protected]> | 2015-05-06 20:48:40 -0400 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2015-05-06 20:50:03 -0400 |
commit | 55b66dc4dee489e43b8e7a170fbc9ddd19a33aac (patch) | |
tree | 6d5cb5ee57a28fb48c02393cdf17aa55326c13b3 /src/gallium/drivers | |
parent | 51e3453785bc57087bb868dc93afbf620935b703 (diff) |
nv50/ir: add SHL to the list of U32 opcodes
Having the wrong inferred type prevents a number of optimizations,
including constant propagation (since float immediates work differently
than integer immediates).
Signed-off-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp index 1e0a6952dd0..254629f907a 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp @@ -418,6 +418,7 @@ nv50_ir::DataType Instruction::inferSrcType() const case TGSI_OPCODE_OR: case TGSI_OPCODE_XOR: case TGSI_OPCODE_NOT: + case TGSI_OPCODE_SHL: case TGSI_OPCODE_U2F: case TGSI_OPCODE_U2D: case TGSI_OPCODE_UADD: |