OSDN Git Service

r300g: finally fix the texture corruption on r3xx-r4xx
authorMarek Olšák <maraeo@gmail.com>
Fri, 17 Dec 2010 07:59:32 +0000 (08:59 +0100)
committerMarek Olšák <maraeo@gmail.com>
Fri, 17 Dec 2010 12:17:52 +0000 (13:17 +0100)
commitdaffaca53e47faeaaefb98ca46fe4870133d9f02
tree481f292b698e3896c44653c866725b9c1f8392e9
parentd0f8eea9a06d8268a21ac58b134964a602f9594e
r300g: finally fix the texture corruption on r3xx-r4xx

Even though a bound texture stays bound when calling set_fragment_sampler_views,
it must be assigned a new cache region depending on the occupancy of other
texture units.

This fixes:
https://bugs.freedesktop.org/show_bug.cgi?id=28800

Thanks to Álmos <aaalmosss@gmail.com> for finding the bug in the code.

NOTE: This is a candidate for both the 7.9 and 7.10 branches.
src/gallium/drivers/r300/r300_state.c