spirv: Clean up vtn_pointer_to_offset
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 22 Mar 2018 16:07:01 +0000 (09:07 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 23 Jun 2018 03:15:57 +0000 (20:15 -0700)
commitfdd5ffee32bd125dbb51e6b2087db186ea09c470
tree8a7a21b6e0f5174da0eb81aa3ffab9234a9215bc
parent7dfa440922f562ae41d0671219ace8ef2217804a
spirv: Clean up vtn_pointer_to_offset

Now that push constants are using on-the-fly offsets, we no longer need
to handle access chains in vtn_pointer_to_offset.

Acked-by: Rob Clark <robdclark@gmail.com>
Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Acked-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/spirv/spirv_to_nir.c
src/compiler/spirv/vtn_private.h
src/compiler/spirv/vtn_variables.c