From: Kenneth Graunke Date: Thu, 28 Oct 2010 19:53:21 +0000 (-0700) Subject: i965/fs: Complete TXL support on gen5+. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2830b1ae9032666e62460de5aece8db843c51c14;p=mesa.git i965/fs: Complete TXL support on gen5+. Initial plumbing existed to turn the ir_txl into OPCODE_TXL, but it was never handled. --- diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 87c06aa22bf..552641b623d 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -2308,6 +2308,13 @@ fs_visitor::generate_tex(fs_inst *inst, struct brw_reg dst, struct brw_reg src) msg_type = BRW_SAMPLER_MESSAGE_SAMPLE_BIAS_GEN5; } break; + case FS_OPCODE_TXL: + if (inst->shadow_compare) { + msg_type = BRW_SAMPLER_MESSAGE_SAMPLE_LOD_COMPARE_GEN5; + } else { + msg_type = BRW_SAMPLER_MESSAGE_SAMPLE_LOD_GEN5; + } + break; } } else { switch (inst->opcode) {