diff options
author | Marek Olšák <[email protected]> | 2010-04-17 02:43:47 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2010-04-17 02:43:47 +0200 |
commit | 411d5063323ccdb85ec090f1c852fcc8e9cd0e64 (patch) | |
tree | 029f20d8481e885cf287e8955773ed09ba1585c9 /src/gallium/drivers/r300 | |
parent | f91a06eed27516b06d51cf437b9b165e8bcef35d (diff) |
r300/compiler: add emulation of all mirrored-clamp wrap modes for NPOT textures
Diffstat (limited to 'src/gallium/drivers/r300')
-rw-r--r-- | src/gallium/drivers/r300/r300_fs.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_fs.c b/src/gallium/drivers/r300/r300_fs.c index a37f23aaef2..4d61f638530 100644 --- a/src/gallium/drivers/r300/r300_fs.c +++ b/src/gallium/drivers/r300/r300_fs.c @@ -169,10 +169,14 @@ static void get_external_state( break; case PIPE_TEX_WRAP_MIRROR_REPEAT: + state->unit[i].wrap_mode = RC_WRAP_MIRRORED_REPEAT; + state->unit[i].fake_npot = TRUE; + break; + case PIPE_TEX_WRAP_MIRROR_CLAMP: case PIPE_TEX_WRAP_MIRROR_CLAMP_TO_EDGE: case PIPE_TEX_WRAP_MIRROR_CLAMP_TO_BORDER: - state->unit[i].wrap_mode = RC_WRAP_MIRROR; + state->unit[i].wrap_mode = RC_WRAP_MIRRORED_CLAMP; state->unit[i].fake_npot = TRUE; break; |