diff options
author | Ian Romanick <[email protected]> | 2017-11-01 16:27:53 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2017-11-08 18:37:29 -0800 |
commit | 24e78d99db177412da0285d5c6ed3c867d6a8adb (patch) | |
tree | bee1acfc3614f0d4e85fdb94c9feef9143942e20 /src/compiler/glsl/linker.h | |
parent | 88f5588f777d76fe48fded8add745b4da2024ebc (diff) |
glsl: Refactor matrix stride calculation into a utility function
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Thomas Helland <[email protected]>
Diffstat (limited to 'src/compiler/glsl/linker.h')
-rw-r--r-- | src/compiler/glsl/linker.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compiler/glsl/linker.h b/src/compiler/glsl/linker.h index 03ed9d5f84c..12a48e0dcd8 100644 --- a/src/compiler/glsl/linker.h +++ b/src/compiler/glsl/linker.h @@ -92,6 +92,10 @@ link_intrastage_shaders(void *mem_ctx, unsigned num_shaders, bool allow_missing_main); +extern unsigned +link_calculate_matrix_stride(const glsl_type *matrix, bool row_major, + enum glsl_interface_packing packing); + /** * Class for processing all of the leaf fields of a variable that corresponds * to a program resource. |