projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f6754a
)
r300g: fix assigning the texture cache region for 1 texture
author
Marek Olšák
<maraeo@gmail.com>
Sun, 20 Jun 2010 12:05:48 +0000
(14:05 +0200)
committer
Marek Olšák
<maraeo@gmail.com>
Sun, 20 Jun 2010 12:06:14 +0000
(14:06 +0200)
src/gallium/drivers/r300/r300_state.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/r300/r300_state.c
b/src/gallium/drivers/r300/r300_state.c
index 9c5a2a05bd4ee3d55a0df3b2dff87b2f743dce60..3f0acd994894009fba9afa07514ca90e3e3beb97 100644
(file)
--- 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,