r300g: fix assigning the texture cache region for 1 texture

This commit is contained in:
Marek Olšák 2010-06-20 14:05:48 +02:00
parent 7f6754af25
commit 646e9c2fd7

View file

@ -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,