nir: Add access qualifiers on load_ubo intrinsic.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 7 Apr 2019 22:34:14 +0000 (00:34 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 10 Apr 2019 00:04:04 +0000 (02:04 +0200)
commit282bacab4a80e06d1c7f19bf092952599ac9b5f5
treed39448f85878bf9f08ef38ad448f0e36d1a44fb8
parentb7ca074cc0df6101c428b2dfa53a59a0c6620af2
nir: Add access qualifiers on load_ubo intrinsic.

Otherwise nir_lower_non_uniform_access crashes when it tries
to get the access of a load_ubo.

Fixes: 8ed583fe523 "spirv: Handle the NonUniformEXT decoration"
Fixes: e50ab2c0f23 "nir: Add access flags to deref and SSBO atomics"
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/compiler/nir/nir_intrinsics.py
src/compiler/spirv/vtn_variables.c