summaryrefslogtreecommitdiffstats
path: root/src/amd/common/ac_nir_to_llvm.h
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2018-01-30 14:52:43 +1100
committerTimothy Arceri <[email protected]>2018-01-31 09:14:07 +1100
commitb8808848ce5964cbff8dc1e2f5f6928f5632b8a2 (patch)
tree053a5bace55cdc394cc054066821b4c2dc75c9e7 /src/amd/common/ac_nir_to_llvm.h
parentfea6da9aaa418c40f229db2ca0c85d7aae96cb73 (diff)
ac/nir_to_llvm: move some interp defines to the header
These will be used in the following patch. Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/amd/common/ac_nir_to_llvm.h')
-rw-r--r--src/amd/common/ac_nir_to_llvm.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/amd/common/ac_nir_to_llvm.h b/src/amd/common/ac_nir_to_llvm.h
index 1484bf1d839..023200ace81 100644
--- a/src/amd/common/ac_nir_to_llvm.h
+++ b/src/amd/common/ac_nir_to_llvm.h
@@ -118,6 +118,11 @@ enum ac_ud_index {
AC_UD_MAX_UD = AC_UD_TCS_MAX_UD,
};
+/* Interpolation locations */
+#define INTERP_CENTER 0
+#define INTERP_CENTROID 1
+#define INTERP_SAMPLE 2
+
/* descriptor index into scratch ring offsets */
#define RING_SCRATCH 0
#define RING_ESGS_VS 1