i965/fs: initialize src as reg_undef for texture opcodes on Gen4.
authorMatt Turner <mattst88@gmail.com>
Tue, 10 Jun 2014 04:03:38 +0000 (21:03 -0700)
committerMatt Turner <mattst88@gmail.com>
Tue, 10 Jun 2014 04:08:05 +0000 (21:08 -0700)
Untested.

src/mesa/drivers/dri/i965/brw_fs_visitor.cpp

index 30899324048afcb4159ae6deab6d12b5849a8a4b..8858852e1795aa9a302e972d1bbb7db10456b84e 100644 (file)
@@ -1089,22 +1089,22 @@ fs_visitor::emit_texture_gen4(ir_texture *ir, fs_reg dst, fs_reg coordinate,
    fs_inst *inst = NULL;
    switch (ir->op) {
    case ir_tex:
-      inst = emit(SHADER_OPCODE_TEX, dst);
+      inst = emit(SHADER_OPCODE_TEX, dst, reg_undef);
       break;
    case ir_txb:
-      inst = emit(FS_OPCODE_TXB, dst);
+      inst = emit(FS_OPCODE_TXB, dst, reg_undef);
       break;
    case ir_txl:
-      inst = emit(SHADER_OPCODE_TXL, dst);
+      inst = emit(SHADER_OPCODE_TXL, dst, reg_undef);
       break;
    case ir_txd:
-      inst = emit(SHADER_OPCODE_TXD, dst);
+      inst = emit(SHADER_OPCODE_TXD, dst, reg_undef);
       break;
    case ir_txs:
-      inst = emit(SHADER_OPCODE_TXS, dst);
+      inst = emit(SHADER_OPCODE_TXS, dst, reg_undef);
       break;
    case ir_txf:
-      inst = emit(SHADER_OPCODE_TXF, dst);
+      inst = emit(SHADER_OPCODE_TXF, dst, reg_undef);
       break;
    default:
       fail("unrecognized texture opcode");