nv50/ir: add SHL to the list of U32 opcodes
authorIlia Mirkin <imirkin@alum.mit.edu>
Thu, 7 May 2015 00:48:40 +0000 (20:48 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 7 May 2015 00:50:03 +0000 (20:50 -0400)
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@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp

index 1e0a695..254629f 100644 (file)
@@ -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: