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

Commit

Permalink
FROMLIST: glsl: fix an incorrect max_array_access after optimization …
Browse files Browse the repository at this point in the history
…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]>
  • Loading branch information
asimiklit authored and strassek committed Jun 6, 2019
1 parent 013cf27 commit 3cf4df6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/compiler/glsl/link_uniform_blocks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,7 @@ link_uniform_blocks(void *mem_ctx,
GLSL_INTERFACE_PACKING_PACKED)) {
b->type = resize_block_array(b->type, b->array);
b->var->type = b->type;
b->var->data.max_array_access = b->type->length - 1;
}

block_size.num_active_uniforms = 0;
Expand Down

0 comments on commit 3cf4df6

Please sign in to comment.