i965: keep gl_program shader info in sync after gather info
authorTimothy Arceri <timothy.arceri@collabora.com>
Thu, 1 Dec 2016 02:37:38 +0000 (13:37 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Tue, 20 Dec 2016 04:43:53 +0000 (15:43 +1100)
commitf562b13bc7d0b4fd954d285a9325e94167b16bf5
tree8203dee89ebf01251311cc33ba28750d043522fe
parentee1f35eb69999933498d97b6fa7dbeb5ab06af74
i965: keep gl_program shader info in sync after gather info

It's possible that nir_shader was cloned and it no longer contains
a pointer to the shader_info in gl_program. So we need to copy
shader_info back to gl_program if that is the case.

Fixes a regression with NIR_TEST_CLONE=true

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98840
src/mesa/drivers/dri/i965/brw_program.c
src/mesa/drivers/dri/i965/brw_program.h