spirv: Fix propagation of OpVariable access flags
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Fri, 17 Apr 2020 21:44:12 +0000 (14:44 -0700)
committerMarge Bot <eric+marge@anholt.net>
Mon, 20 Apr 2020 16:46:06 +0000 (16:46 +0000)
commita1f6ae4744da830b9bf584296dd9738aa3532357
treef9c3bbd4c8531004652bf54631320de071f47f4b
parentc76f2292b556502018ecc591f3388516c8ded469
spirv: Fix propagation of OpVariable access flags

After the decorations of a variable are evaluated, propagate the
access flag to the associated vtn_pointer.  This was done when
creating the pointer but at that point there was no access flags for
the variable.

Inline the pointer creation to make this point clearer, in isolation
the helper made the impression that the value was being propagated.

Issue found by Ken.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4620>
src/compiler/spirv/vtn_private.h
src/compiler/spirv/vtn_variables.c