From 9d2b391165e64f3c64021e5a563037e0ccc09d84 Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Wed, 19 Oct 2016 09:15:57 +1100 Subject: glsl: add temporary copy_shader_info() function This function is added here to ease refactoring towards using the new shared shader_info. Once refactoring is complete and values are set directly it will be removed. We call it from _mesa_copy_linked_program_data() rather than glsl_to_nir() so that the values will be set for all drivers. In order to do this some calls need to be moved around so that we make sure to call do_set_program_inouts() before _mesa_copy_linked_program_data() Reviewed-by: Jason Ekstrand --- src/mesa/main/shaderapi.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mesa/main') diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c index 358969b082c..bbaf7706407 100644 --- a/src/mesa/main/shaderapi.c +++ b/src/mesa/main/shaderapi.c @@ -2218,6 +2218,8 @@ _mesa_copy_linked_program_data(const struct gl_shader_program *src, default: break; } + + copy_shader_info(src, dst_sh); } /** -- cgit v1.2.3