st/nine: Fix resource9 private data
authorPatrick Rudolph <siro@das-labor.org>
Sat, 14 Nov 2015 12:02:43 +0000 (13:02 +0100)
committerAxel Davy <axel.davy@ens.fr>
Thu, 4 Feb 2016 21:12:17 +0000 (22:12 +0100)
commit827fee059e702b22c6f5e4a61fb1aff3e926899d
tree90c475663998b088d915108969fa25697d4f1774
parent5c79bd666b1163de42d6b4c0fc1a7fa2fd3c6b8e
st/nine: Fix resource9 private data

Store a copy of GUID in the header that is under our control and use it
as key for the hashtable instead of using the application provided pointer.
The application might change the memory after leaving the function.

Fixes a crash for issue https://github.com/iXit/Mesa-3D/issues/130

Signed-off-by: Patrick Rudolph <siro@das-labor.org>
Reviewed-by: Axel Davy <axel.davy@ens.fr>
src/gallium/state_trackers/nine/nine_pdata.h
src/gallium/state_trackers/nine/resource9.c