From 80d89aa0d28ca987d958c1033eeb7e4a3c10368b Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Fri, 16 Apr 2010 01:59:11 +0200 Subject: r300/compiler: fix repeat wrap mode for TXP and NPOTs No idea why st/mesa unnecessarily inserts TXP where TEX is sufficient. Also re-enabling the NPOT fallback for repeat in r300g. --- src/gallium/drivers/r300/r300_fs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/gallium') diff --git a/src/gallium/drivers/r300/r300_fs.c b/src/gallium/drivers/r300/r300_fs.c index 01fd67e536b..a37f23aaef2 100644 --- a/src/gallium/drivers/r300/r300_fs.c +++ b/src/gallium/drivers/r300/r300_fs.c @@ -165,8 +165,7 @@ static void get_external_state( switch (s->state.wrap_s) { case PIPE_TEX_WRAP_REPEAT: state->unit[i].wrap_mode = RC_WRAP_REPEAT; - /* XXX Enable when REPEAT fallback works. - state->unit[i].fake_npot = TRUE; */ + state->unit[i].fake_npot = TRUE; break; case PIPE_TEX_WRAP_MIRROR_REPEAT: -- cgit v1.2.3