r600: Fix use after free in compute_memory_promote_item.
authorJan Vesely <jan.vesely@rutgers.edu>
Mon, 23 Jun 2014 14:39:00 +0000 (10:39 -0400)
committerTom Stellard <thomas.stellard@amd.com>
Tue, 24 Jun 2014 16:04:54 +0000 (12:04 -0400)
commit0c181cdc6c0efdd98927b010239e0376399cecbf
treefdb615c44a22dec1da84fed848a11e0fcb2b88b2
parenta59f2bb17bcc78e09653391748549e7973990798
r600: Fix use after free in compute_memory_promote_item.

The dst pointer needs to be initialized after any calls to
 compute_memory_grow_pool, as the function might change the pool->vbo pointer.

This fixes crashes and assertion failures in two gegl tests.

Reviewed-by: Bruno Jiménez <brunojimen@gmail.com>
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
src/gallium/drivers/r600/compute_memory_pool.c