spirv: Add vtn_variable_mode_image
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Fri, 10 May 2019 02:33:51 +0000 (19:33 -0700)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Mon, 20 May 2019 17:53:38 +0000 (10:53 -0700)
commit48ea3bbff6ad1ce9f028097660da6c2d30338fe5
treec3a1a84f717e4b734ae6bfdcdd00cd07a73059f3
parent672a3f42d91534a4a77ba5da10a66871734d7953
spirv: Add vtn_variable_mode_image

Corresponding to SpvStorageClassImage.  We see pointers for that
storage class in tests, but don't use the storage class any further.
Adding this so that we can call vtn_mode_to_address_format() for all
supported pointers.

v2: Fail when trying to create a SpvStorageClassImage
    variable.  (Jason)

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/compiler/spirv/vtn_private.h
src/compiler/spirv/vtn_variables.c