Mesa (master): nv50/ir: add SHL to the list of U32 opcodes
Ilia Mirkin
imirkin at kemper.freedesktop.org
Thu May 7 00:54:07 UTC 2015
Module: Mesa
Branch: master
Commit: 55b66dc4dee489e43b8e7a170fbc9ddd19a33aac
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=55b66dc4dee489e43b8e7a170fbc9ddd19a33aac
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date: Wed May 6 20:48:40 2015 -0400
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 <imirkin at alum.mit.edu>
---
src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp | 1 +
1 file changed, 1 insertion(+)
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 1e0a695..254629f 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:
More information about the mesa-commit
mailing list