st/shader_cache: copy nir pointer to gl_program after deserializing
authorTimothy Arceri <tarceri@itsqueeze.com>
Fri, 16 Feb 2018 00:41:17 +0000 (11:41 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Tue, 20 Feb 2018 02:15:02 +0000 (13:15 +1100)
commitd88a2906f86843fa11d95f7ac2f39cd0b2713d72
treeadcc1a1b50ab226e2b3171646e44600452d372d2
parent691c320de066ba71c61ad97a1a8b39687238d6ef
st/shader_cache: copy nir pointer to gl_program after deserializing

This fixes a crash when running the arb_get_program_binary-api-errors
piglit test twice.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_shader_cache.c