i965/fs: Complete TXL support on gen5+.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 28 Oct 2010 19:53:21 +0000 (12:53 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 25 Feb 2011 23:30:45 +0000 (15:30 -0800)
Initial plumbing existed to turn the ir_txl into OPCODE_TXL, but it was
never handled.

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

index 87c06aa22bffb26c28f842b58e774d27c26e096a..552641b623d2396909d7212623a8e044543e9c9c 100644 (file)
@@ -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) {