mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
r300g: fix assigning the texture cache region for 1 texture
This commit is contained in:
parent
7f6754af25
commit
646e9c2fd7
1 changed files with 4 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue