winsys/radeon: fix relocs caching
authorVadim Girlin <vadimgirlin@gmail.com>
Wed, 19 Sep 2012 00:48:16 +0000 (04:48 +0400)
committerVadim Girlin <vadimgirlin@gmail.com>
Wed, 19 Sep 2012 00:48:16 +0000 (04:48 +0400)
commit9aa8bac98b823e8783bc3a06a6e5b23fbf8d87fb
treeae2d44d4ae0d75eb7eeb6440ace490a7eb08dcf7
parent175fdd7b86cce4e1fc945058fa2223b77edbf8a6
winsys/radeon: fix relocs caching

Don't cache pointers to elements of reallocatable array.
In some circumstances it caused false cache hits resulting in incorrect
command stream and gpu lockup.

Note: This is a candidate for the stable branches.

Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com>
Reviewed-by: Marek Olšák <maraeo@gmail.com>
src/gallium/winsys/radeon/drm/radeon_drm_cs.c
src/gallium/winsys/radeon/drm/radeon_drm_cs.h