OSDN Git Service

spirv: Store the id of the type in vtn_type
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 3 Jan 2018 16:41:42 +0000 (08:41 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 8 Jan 2018 22:57:44 +0000 (14:57 -0800)
commit8bad7f33c661eb0ec10d54b6297ed537822a4c78
tree402b238c7b8ad94f9ef6fdbfeb8f70c321a14cbc
parent53265c8798ee83e812f2e27356c8d9affc5356ca
spirv: Store the id of the type in vtn_type

Previously, we were storing a pointer to the vtn_value because we use it
to look up decorations when we create input/output variables.  This
works, but it also may be useful to have the id itself so we may as well
store that instead.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/compiler/spirv/spirv_to_nir.c
src/compiler/spirv/vtn_private.h
src/compiler/spirv/vtn_variables.c