summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2010-06-20 14:05:48 +0200
committerMarek Olšák <[email protected]>2010-06-20 14:06:14 +0200
commit646e9c2fd7b5974480fcbed0bef7281b4d4a0e65 (patch)
tree1e54fb1f5383b8b2425ee2be5de54b5ad05ac579 /src/gallium
parent7f6754af253856cea9da17149e834b229bc1fd49 (diff)
r300g: fix assigning the texture cache region for 1 texture
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/r300/r300_state.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_state.c b/src/gallium/drivers/r300/r300_state.c
index 9c5a2a05bd4..3f0acd99489 100644
--- a/src/gallium/drivers/r300/r300_state.c
+++ b/src/gallium/drivers/r300/r300_state.c
@@ -1126,7 +1126,10 @@ static uint32_t r300_assign_texture_cache_region(unsigned index, unsigned num)
*
* This simple trick works for all "num" <= 16.
*/
- return R300_TX_CACHE(num + index);
+ if (num <= 1)
+ return R300_TX_CACHE(R300_TX_CACHE_WHOLE);
+ else
+ return R300_TX_CACHE(num + index);
}
static void r300_set_fragment_sampler_views(struct pipe_context* pipe,