radeonsi: Fix crash when destroying si_screen
authorTom Stellard <thomas.stellard@amd.com>
Wed, 7 Jan 2015 18:49:12 +0000 (13:49 -0500)
committerTom Stellard <thomas.stellard@amd.com>
Wed, 7 Jan 2015 21:28:40 +0000 (16:28 -0500)
commite28f9d0e60468db429e75a27443f7df52da224a2
treeade64ee26aa7fe4df5fc6c4de41be280d81a1add
parent2b7fd5b11df95869249a1bdc6e1b222747aaa075
radeonsi: Fix crash when destroying si_screen

We were invalidating si_screen:tm by calling
r600_destroy_common_screen() which frees the si_screen object.  This
caused the driver to crash in LLVMDisposeTargetMachine() since we
were passing it an invalid pointer.

https://bugs.freedesktop.org/show_bug.cgi?id=88170
src/gallium/drivers/radeonsi/si_pipe.c