mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 15:40:11 +01:00
spirv: Expose some memory related functions in vtn_private.h
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23825>
This commit is contained in:
parent
af3eb80afa
commit
3d7e5ec758
2 changed files with 10 additions and 3 deletions
|
|
@ -1032,5 +1032,12 @@ vtn_parse_switch(struct vtn_builder *b,
|
||||||
const uint32_t *branch,
|
const uint32_t *branch,
|
||||||
struct list_head *case_list);
|
struct list_head *case_list);
|
||||||
|
|
||||||
|
bool vtn_get_mem_operands(struct vtn_builder *b, const uint32_t *w, unsigned count,
|
||||||
|
unsigned *idx, SpvMemoryAccessMask *access, unsigned *alignment,
|
||||||
|
SpvScope *dest_scope, SpvScope *src_scope);
|
||||||
|
void vtn_emit_make_visible_barrier(struct vtn_builder *b, SpvMemoryAccessMask access,
|
||||||
|
SpvScope scope, enum vtn_variable_mode mode);
|
||||||
|
void vtn_emit_make_available_barrier(struct vtn_builder *b, SpvMemoryAccessMask access,
|
||||||
|
SpvScope scope, enum vtn_variable_mode mode);
|
||||||
|
|
||||||
#endif /* _VTN_PRIVATE_H_ */
|
#endif /* _VTN_PRIVATE_H_ */
|
||||||
|
|
|
||||||
|
|
@ -2368,7 +2368,7 @@ nir_sloppy_bitcast(nir_builder *b, nir_def *val,
|
||||||
return nir_shrink_zero_pad_vec(b, val, num_components);
|
return nir_shrink_zero_pad_vec(b, val, num_components);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool
|
bool
|
||||||
vtn_get_mem_operands(struct vtn_builder *b, const uint32_t *w, unsigned count,
|
vtn_get_mem_operands(struct vtn_builder *b, const uint32_t *w, unsigned count,
|
||||||
unsigned *idx, SpvMemoryAccessMask *access, unsigned *alignment,
|
unsigned *idx, SpvMemoryAccessMask *access, unsigned *alignment,
|
||||||
SpvScope *dest_scope, SpvScope *src_scope)
|
SpvScope *dest_scope, SpvScope *src_scope)
|
||||||
|
|
@ -2435,7 +2435,7 @@ vtn_mode_to_memory_semantics(enum vtn_variable_mode mode)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
void
|
||||||
vtn_emit_make_visible_barrier(struct vtn_builder *b, SpvMemoryAccessMask access,
|
vtn_emit_make_visible_barrier(struct vtn_builder *b, SpvMemoryAccessMask access,
|
||||||
SpvScope scope, enum vtn_variable_mode mode)
|
SpvScope scope, enum vtn_variable_mode mode)
|
||||||
{
|
{
|
||||||
|
|
@ -2447,7 +2447,7 @@ vtn_emit_make_visible_barrier(struct vtn_builder *b, SpvMemoryAccessMask access,
|
||||||
vtn_mode_to_memory_semantics(mode));
|
vtn_mode_to_memory_semantics(mode));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
void
|
||||||
vtn_emit_make_available_barrier(struct vtn_builder *b, SpvMemoryAccessMask access,
|
vtn_emit_make_available_barrier(struct vtn_builder *b, SpvMemoryAccessMask access,
|
||||||
SpvScope scope, enum vtn_variable_mode mode)
|
SpvScope scope, enum vtn_variable_mode mode)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue