glsl: fix crash compiling bindless samplers inside unnamed UBOs
authorTimothy Arceri <tarceri@itsqueeze.com>
Fri, 11 Oct 2019 05:23:48 +0000 (16:23 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Sat, 12 Oct 2019 11:04:23 +0000 (22:04 +1100)
commit1294f01e061d9490fa97c35f03ef845e06fd14ab
tree70bdd207aebc175403da896cd6797af58c37a0f0
parentcece947a8dfadbaed45a59f86d357afb50f25f48
glsl: fix crash compiling bindless samplers inside unnamed UBOs

The check to see if we were dealing with a buffer block was
too late and only worked for named UBOs.

Fixes: f32b01ca435c "glsl/linker: remove ubo explicit binding handling"

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/1900
src/compiler/glsl/link_uniform_initializers.cpp