spirv: Refactor a couple of pointer query helpers
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 19 Oct 2017 00:38:57 +0000 (17:38 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 6 Dec 2017 04:56:16 +0000 (20:56 -0800)
commit6dffef6308200d90a983301444e6952223616444
treeb1425d2cd453d586290d227d44b128e4069c28aa
parent93646fb503342ecac3e5df247b90c15ca65c1e0a
spirv: Refactor a couple of pointer query helpers

This commit moves them both into vtn_variables.c towards the top, makes
them take a vtn_builder, and replaces a hand-rolled instance of
is_external_block with a function call.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
src/compiler/spirv/vtn_private.h
src/compiler/spirv/vtn_variables.c