mesa: modify _mesa_copy_linked_program_data() to take gl_linked_shader
authorTimothy Arceri <timothy.arceri@collabora.com>
Wed, 19 Oct 2016 03:49:48 +0000 (14:49 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Wed, 26 Oct 2016 03:29:36 +0000 (14:29 +1100)
commite40d32b3ec0793b475004b8f36b17f1493806271
tree7064257c277e14a14e8c261973581efd8b827180
parent68db0fe0346386c8d231eb81da6340b24b7878b0
mesa: modify _mesa_copy_linked_program_data() to take gl_linked_shader

This allows us to do some small tidy ups, but will also allow us to call
a new function that copies values to a shared shader info from here.

In order to make this change this function now requires
_mesa_reference_program() to have previously been called.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/brw_link.cpp
src/mesa/main/shaderapi.c
src/mesa/main/shaderapi.h
src/mesa/program/ir_to_mesa.cpp
src/mesa/state_tracker/st_glsl_to_nir.cpp
src/mesa/state_tracker/st_glsl_to_tgsi.cpp