diff options
author | Timothy Arceri <[email protected]> | 2016-10-19 09:15:57 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2016-10-26 14:29:36 +1100 |
commit | 9d2b391165e64f3c64021e5a563037e0ccc09d84 (patch) | |
tree | 9f1849a81c187cd412762f8ea17567ecb56f3ef5 /src/mesa/main | |
parent | debed12fdde9766fd9cf99d679207a36a4599a82 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/shaderapi.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); } /** |