summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_descriptors.c
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2016-12-02 15:39:25 +0100
committerEmil Velikov <emil.l.velikov@gmail.com>2016-12-14 19:03:12 +0000
commit86b8bc7656ef7fd870829121f2a6d088c5fd2516 (patch)
tree9dadbd1ce9099a27627e8056e7eef8682a37c4db /src/gallium/drivers/radeonsi/si_descriptors.c
parent7c813ce14e50a48780a74bdd67ad550f8ae9ade9 (diff)
downloadexternal_mesa3d-86b8bc7656ef7fd870829121f2a6d088c5fd2516.zip
external_mesa3d-86b8bc7656ef7fd870829121f2a6d088c5fd2516.tar.gz
external_mesa3d-86b8bc7656ef7fd870829121f2a6d088c5fd2516.tar.bz2
cso: don't release sampler states that are bound
This fixes random radeonsi GPU hangs in Batman Arkham: Origins (Wine) and probably many other games too. cso_cache deletes sampler states when the cache size is too big and doesn't check which sampler states are bound, causing use-after-free in drivers. Because of that, radeonsi uploaded garbage sampler states and the hardware went bananas. Other drivers may have experienced similar issues. Cc: 12.0 13.0 <mesa-stable@lists.freedesktop.org> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com> Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net> (cherry picked from commit 6dc96de303290e8d1fc294da478c4f370be98dea)
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_descriptors.c')
0 files changed, 0 insertions, 0 deletions