mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 16:38:09 +02:00
amd: Move sendmsg defines to ac_shader_util.
Will be used by ac/nir legacy and NGG lowerings. Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Qiang Yu <yuq825@gmail.com> Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22690>
This commit is contained in:
parent
f66281c7fb
commit
28d740fc0b
2 changed files with 9 additions and 9 deletions
|
|
@ -37,6 +37,15 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define AC_SENDMSG_GS 2
|
||||
#define AC_SENDMSG_GS_DONE 3
|
||||
#define AC_SENDMSG_GS_ALLOC_REQ 9
|
||||
|
||||
#define AC_SENDMSG_GS_OP_NOP (0 << 4)
|
||||
#define AC_SENDMSG_GS_OP_CUT (1 << 4)
|
||||
#define AC_SENDMSG_GS_OP_EMIT (2 << 4)
|
||||
#define AC_SENDMSG_GS_OP_EMIT_CUT (3 << 4)
|
||||
|
||||
enum ac_image_dim
|
||||
{
|
||||
ac_image_1d,
|
||||
|
|
|
|||
|
|
@ -332,15 +332,6 @@ LLVMValueRef ac_get_thread_id(struct ac_llvm_context *ctx);
|
|||
|
||||
LLVMValueRef ac_build_ddxy(struct ac_llvm_context *ctx, uint32_t mask, int idx, LLVMValueRef val);
|
||||
|
||||
#define AC_SENDMSG_GS 2
|
||||
#define AC_SENDMSG_GS_DONE 3
|
||||
#define AC_SENDMSG_GS_ALLOC_REQ 9
|
||||
|
||||
#define AC_SENDMSG_GS_OP_NOP (0 << 4)
|
||||
#define AC_SENDMSG_GS_OP_CUT (1 << 4)
|
||||
#define AC_SENDMSG_GS_OP_EMIT (2 << 4)
|
||||
#define AC_SENDMSG_GS_OP_EMIT_CUT (3 << 4)
|
||||
|
||||
void ac_build_sendmsg(struct ac_llvm_context *ctx, uint32_t msg, LLVMValueRef wave_id);
|
||||
|
||||
LLVMValueRef ac_build_imsb(struct ac_llvm_context *ctx, LLVMValueRef arg, LLVMTypeRef dst_type);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue