r300/compiler: do not set TEX_IGNORE_UNCOVERED on r500
authorMarek Olšák <maraeo@gmail.com>
Sat, 12 Mar 2011 10:20:57 +0000 (11:20 +0100)
committerMarek Olšák <maraeo@gmail.com>
Sat, 12 Mar 2011 10:54:23 +0000 (11:54 +0100)
The docs say it can be set for direct texture lookups, but even that
causes problems.

This fixes the wireframe bug:
https://bugs.freedesktop.org/show_bug.cgi?id=32688

NOTE: This is a candidate for the 7.9 and 7.10 branches.

src/mesa/drivers/dri/r300/compiler/r500_fragprog_emit.c

index 1febc19cc2d0ff7533ba92d0d771abfcae1bbeca..301b4446693207a6dd2eb20f65817c7987dd7d92 100644 (file)
@@ -372,7 +372,7 @@ static int emit_tex(struct r300_fragment_program_compiler *c, struct rc_sub_inst
                | (inst->DstReg.WriteMask << 11)
                | R500_INST_TEX_SEM_WAIT;
        code->inst[ip].inst1 = R500_TEX_ID(inst->TexSrcUnit)
-               | R500_TEX_SEM_ACQUIRE | R500_TEX_IGNORE_UNCOVERED;
+               | R500_TEX_SEM_ACQUIRE;
 
        if (inst->TexSrcTarget == RC_TEXTURE_RECT)
                code->inst[ip].inst1 |= R500_TEX_UNSCALED;