radv/ac: add geom shader sendmsg defines.
authorDave Airlie <airlied@redhat.com>
Wed, 18 Jan 2017 05:17:35 +0000 (15:17 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 30 Jan 2017 23:29:10 +0000 (09:29 +1000)
This just adds some defines needed for geom shaders.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/common/ac_nir_to_llvm.c

index ca5d8ca32e404c8b6033d2afe34a9df442755e89..4e6b72f6276f53a7afce925e15e479cf45ff2ffd 100644 (file)
@@ -43,6 +43,14 @@ enum radeon_llvm_calling_convention {
 #define RADEON_LLVM_MAX_INPUTS (VARYING_SLOT_VAR31 + 1)
 #define RADEON_LLVM_MAX_OUTPUTS (VARYING_SLOT_VAR31 + 1)
 
+#define SENDMSG_GS 2
+#define SENDMSG_GS_DONE 3
+
+#define SENDMSG_GS_OP_NOP      (0 << 4)
+#define SENDMSG_GS_OP_CUT      (1 << 4)
+#define SENDMSG_GS_OP_EMIT     (2 << 4)
+#define SENDMSG_GS_OP_EMIT_CUT (3 << 4)
+
 enum desc_type {
        DESC_IMAGE,
        DESC_FMASK,