mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
glsl: use explicit offset when lowering buffer access
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
This commit is contained in:
parent
96527c3cf2
commit
802262c0af
1 changed files with 4 additions and 0 deletions
|
|
@ -440,6 +440,10 @@ lower_buffer_access::setup_buffer_access(void *mem_ctx,
|
|||
else
|
||||
field_align = type->std140_base_alignment(field_row_major);
|
||||
|
||||
if (struct_type->fields.structure[i].offset != -1) {
|
||||
intra_struct_offset = struct_type->fields.structure[i].offset;
|
||||
}
|
||||
|
||||
intra_struct_offset = glsl_align(intra_struct_offset, field_align);
|
||||
|
||||
if (strcmp(struct_type->fields.structure[i].name,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue