From: Matt Turner Date: Tue, 10 Jun 2014 04:03:38 +0000 (-0700) Subject: i965/fs: initialize src as reg_undef for texture opcodes on Gen4. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8e115b03cf373512ee572fde806c584b5891314d;p=mesa.git i965/fs: initialize src as reg_undef for texture opcodes on Gen4. Untested. --- 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");