Skip to content
This repository was archived by the owner on Jan 7, 2023. It is now read-only.

Commit 975199a

Browse files
asimiklitstrassek
authored andcommitted
FROMLIST: glsl: fix an incorrect max_array_access after optimization of ssbo/ubo
This is needed to fix these tests: piglit.spec.arb_shader_storage_buffer_object.compiler.unused-array-element_frag piglit.spec.arb_shader_storage_buffer_object.compiler.unused-array-element_comp Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109532 Reported-By: Ilia Mirkin <[email protected]> Signed-off-by: Andrii Simiklit <[email protected]> TEST=[CTS 9.0r6} dEQP-GLES31.functional.ssbo.layout.random.all_per_block_buffers#18 (am from https://gitlab.freedesktop.org/mesa/mesa/merge_requests/332) Signed-off-by: Kevin Strasser <[email protected]>
1 parent 63f7d56 commit 975199a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/compiler/glsl/link_uniform_blocks.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,7 @@ link_uniform_blocks(void *mem_ctx,
442442
GLSL_INTERFACE_PACKING_PACKED)) {
443443
b->type = resize_block_array(b->type, b->array);
444444
b->var->type = b->type;
445+
b->var->data.max_array_access = b->type->length - 1;
445446
}
446447

447448
block_size.num_active_uniforms = 0;

0 commit comments

Comments
 (0)