diff options
author | Jason Ekstrand <[email protected]> | 2017-10-18 17:38:57 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-12-05 20:56:16 -0800 |
commit | 6dffef6308200d90a983301444e6952223616444 (patch) | |
tree | b1425d2cd453d586290d227d44b128e4069c28aa /src/compiler/spirv/vtn_private.h | |
parent | 93646fb503342ecac3e5df247b90c15ca65c1e0a (diff) |
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 <[email protected]>
Reviewed-by: Kristian H. Kristensen <[email protected]>
Diffstat (limited to 'src/compiler/spirv/vtn_private.h')
-rw-r--r-- | src/compiler/spirv/vtn_private.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/compiler/spirv/vtn_private.h b/src/compiler/spirv/vtn_private.h index 8efa9193015..0f92a74ec84 100644 --- a/src/compiler/spirv/vtn_private.h +++ b/src/compiler/spirv/vtn_private.h @@ -428,13 +428,6 @@ struct vtn_pointer { struct nir_ssa_def *offset; }; -static inline bool -vtn_pointer_uses_ssa_offset(struct vtn_pointer *ptr) -{ - return ptr->mode == vtn_variable_mode_ubo || - ptr->mode == vtn_variable_mode_ssbo; -} - struct vtn_variable { enum vtn_variable_mode mode; |