diff options
author | Matt Turner <[email protected]> | 2014-06-09 21:03:38 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2014-06-09 21:08:05 -0700 |
commit | 8e115b03cf373512ee572fde806c584b5891314d (patch) | |
tree | fddcd5ce8e544c9d2ee60fb7f55d9fac720b72fe /src/mesa/drivers/dri/i965 | |
parent | 198204c9c5721b1b8d3e0350831ed80b4f19b56d (diff) |
i965/fs: initialize src as reg_undef for texture opcodes on Gen4.
Untested.
Diffstat (limited to 'src/mesa/drivers/dri/i965')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp index 30899324048..8858852e179 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp @@ -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"); |