spirv: Export vtn_storage_class_to_mode()
So we can reuse in spirv_to_nir.c. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
@@ -799,6 +799,11 @@ void vtn_handle_entry_point(struct vtn_builder *b, const uint32_t *w,
|
|||||||
void vtn_handle_decoration(struct vtn_builder *b, SpvOp opcode,
|
void vtn_handle_decoration(struct vtn_builder *b, SpvOp opcode,
|
||||||
const uint32_t *w, unsigned count);
|
const uint32_t *w, unsigned count);
|
||||||
|
|
||||||
|
enum vtn_variable_mode vtn_storage_class_to_mode(struct vtn_builder *b,
|
||||||
|
SpvStorageClass class,
|
||||||
|
struct vtn_type *interface_type,
|
||||||
|
nir_variable_mode *nir_mode_out);
|
||||||
|
|
||||||
static inline uint32_t
|
static inline uint32_t
|
||||||
vtn_align_u32(uint32_t v, uint32_t a)
|
vtn_align_u32(uint32_t v, uint32_t a)
|
||||||
{
|
{
|
||||||
|
@@ -1716,7 +1716,7 @@ ptr_decoration_cb(struct vtn_builder *b, struct vtn_value *val, int member,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static enum vtn_variable_mode
|
enum vtn_variable_mode
|
||||||
vtn_storage_class_to_mode(struct vtn_builder *b,
|
vtn_storage_class_to_mode(struct vtn_builder *b,
|
||||||
SpvStorageClass class,
|
SpvStorageClass class,
|
||||||
struct vtn_type *interface_type,
|
struct vtn_type *interface_type,
|
||||||
|
Reference in New Issue
Block a user