summaryrefslogtreecommitdiffstats
path: root/src/compiler/shader_info.h
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2016-10-19 09:15:57 +1100
committerTimothy Arceri <[email protected]>2016-10-26 14:29:36 +1100
commit9d2b391165e64f3c64021e5a563037e0ccc09d84 (patch)
tree9f1849a81c187cd412762f8ea17567ecb56f3ef5 /src/compiler/shader_info.h
parentdebed12fdde9766fd9cf99d679207a36a4599a82 (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/compiler/shader_info.h')
-rw-r--r--src/compiler/shader_info.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/compiler/shader_info.h b/src/compiler/shader_info.h
index ab38562d95e..7624008dedc 100644
--- a/src/compiler/shader_info.h
+++ b/src/compiler/shader_info.h
@@ -124,6 +124,13 @@ typedef struct shader_info {
};
} shader_info;
+struct gl_shader_program;
+struct gl_linked_shader;
+
+void
+copy_shader_info(const struct gl_shader_program *shader_prog,
+ struct gl_linked_shader *sh);
+
#ifdef __cplusplus
}
#endif