From 2830b1ae9032666e62460de5aece8db843c51c14 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Thu, 28 Oct 2010 12:53:21 -0700 Subject: i965/fs: Complete TXL support on gen5+. Initial plumbing existed to turn the ir_txl into OPCODE_TXL, but it was never handled. --- src/mesa/drivers/dri/i965/brw_fs.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 87c06aa22b..552641b623 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) { -- cgit v1.2.3