Mesa (7.9): r300/compiler: do not set TEX_IGNORE_UNCOVERED on r500
Marek Olšák
mareko at kemper.freedesktop.org
Sat Mar 12 21:40:27 UTC 2011
Module: Mesa
Branch: 7.9
Commit: ca76f4f6aaa27fea64cf720c6de843522d02b3a0
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ca76f4f6aaa27fea64cf720c6de843522d02b3a0
Author: Marek Olšák <maraeo at gmail.com>
Date: Sat Mar 12 11:20:57 2011 +0100
r300/compiler: do not set TEX_IGNORE_UNCOVERED on r500
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.
(cherry picked from commit 6da4866ffdb19315bbb48f6778d1a5297b842a77)
---
.../drivers/dri/r300/compiler/r500_fragprog_emit.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/mesa/drivers/dri/r300/compiler/r500_fragprog_emit.c b/src/mesa/drivers/dri/r300/compiler/r500_fragprog_emit.c
index abbf704..147cb67 100644
--- a/src/mesa/drivers/dri/r300/compiler/r500_fragprog_emit.c
+++ b/src/mesa/drivers/dri/r300/compiler/r500_fragprog_emit.c
@@ -373,7 +373,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;
More information about the mesa-commit
mailing list