diff options
author | Ian Romanick <[email protected]> | 2017-11-01 16:34:32 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2017-11-08 18:37:29 -0800 |
commit | 1a2beae1b35bb0d87233993d752414899719cd08 (patch) | |
tree | 60ed16479bcbadc927650b54dc1a978de56ec798 /src/compiler/glsl/lower_buffer_access.h | |
parent | 24e78d99db177412da0285d5c6ed3c867d6a8adb (diff) |
glsl: Use link_calculate_matrix_stride in lower_buffer_access and friends
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Thomas Helland <[email protected]>
Diffstat (limited to 'src/compiler/glsl/lower_buffer_access.h')
-rw-r--r-- | src/compiler/glsl/lower_buffer_access.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/compiler/glsl/lower_buffer_access.h b/src/compiler/glsl/lower_buffer_access.h index 9e89d324bed..bd177ca142f 100644 --- a/src/compiler/glsl/lower_buffer_access.h +++ b/src/compiler/glsl/lower_buffer_access.h @@ -48,14 +48,16 @@ public: void emit_access(void *mem_ctx, bool is_write, ir_dereference *deref, ir_variable *base_offset, unsigned int deref_offset, - bool row_major, int matrix_columns, - unsigned int packing, unsigned int write_mask); + bool row_major, const glsl_type *matrix_type, + enum glsl_interface_packing packing, + unsigned int write_mask); bool is_dereferenced_thing_row_major(const ir_rvalue *deref); void setup_buffer_access(void *mem_ctx, ir_rvalue *deref, ir_rvalue **offset, unsigned *const_offset, - bool *row_major, int *matrix_columns, + bool *row_major, + const glsl_type **matrix_type, const glsl_struct_field **struct_field, enum glsl_interface_packing packing); |