glsl: fix an incorrect max_array_access after optimization of ssbo/ubo
authorAndrii Simiklit <andrii.simiklit@globallogic.com>
Tue, 5 Mar 2019 15:38:20 +0000 (17:38 +0200)
committerKristian H. Kristensen <hoegsberg@google.com>
Mon, 6 Jan 2020 21:01:19 +0000 (13:01 -0800)
commita3c9a2881e242b9ac588d6dcb158e805fefe352d
tree49d9b38e25fa42db93f17b315dca729bd7de1a09
parent420fe1e7f9ef56177c8f45e98e057488a2b57646
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

Fixes: 8cf1333b "glsl: link uniform block arrays of arrays"
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109532
Reported-By: Ilia Mirkin <imirkin@alum.mit.edu>
Tested-by: Fritz Koenig <frkoenig@google.com>
Signed-off-by: Andrii Simiklit <andrii.simiklit@globallogic.com>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
src/compiler/glsl/link_uniform_blocks.cpp