i965/fs: Use a properly named constant in TXB handling.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 28 Oct 2010 20:07:11 +0000 (13:07 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 25 Feb 2011 23:30:45 +0000 (15:30 -0800)
The old value, BRW_SAMPLER_MESSAGE_SIMD8_SAMPLE makes it sound like we're
doing a non-bias texture lookup.  It has the same value as the new constant
BRW_SAMPLER_MESSAGE_SIMD8_SAMPLE_BIAS_COMPARE, so there should be no
functional changes.

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

index 30e3bd544693490fea9cfdcd6f39a2b2999ab71e..d67b449b0c0f4313894ff6bc12604f4493875097 100644 (file)
@@ -2325,7 +2325,7 @@ fs_visitor::generate_tex(fs_inst *inst, struct brw_reg dst, struct brw_reg src)
       case FS_OPCODE_TXB:
         if (inst->shadow_compare) {
            assert(inst->mlen == 6);
-           msg_type = BRW_SAMPLER_MESSAGE_SIMD8_SAMPLE;
+           msg_type = BRW_SAMPLER_MESSAGE_SIMD8_SAMPLE_BIAS_COMPARE;
         } else {
            assert(inst->mlen == 9);
            msg_type = BRW_SAMPLER_MESSAGE_SIMD16_SAMPLE_BIAS;