nir/spirv: Compute offsets for UBOs and SSBOs up-front
authorJason Ekstrand <jason@jlekstrand.net>
Thu, 29 Jun 2017 17:33:34 +0000 (10:33 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 5 Jul 2017 22:26:54 +0000 (15:26 -0700)
commit62ebca1fe61d0c93a212be0ec2451053cbb9030c
tree37a02efb83c02d8b6c1e4f341e0a8a0e70c4a268
parent604eda3712879ae21c56336fe890092732afebc6
nir/spirv: Compute offsets for UBOs and SSBOs up-front

Now that we have a pointer wrapper class, we can create offsets for UBOs
and SSBOs up-front instead of waiting until we have the full access
chain.  For push constants, we still use the old mechanism because it
provides us with some nice range information.

Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/compiler/spirv/vtn_private.h
src/compiler/spirv/vtn_variables.c