Module: Mesa Branch: master Commit: b8808848ce5964cbff8dc1e2f5f6928f5632b8a2 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b8808848ce5964cbff8dc1e2f5f6928f5632b8a2
Author: Timothy Arceri <[email protected]> Date: Tue Jan 30 14:52:43 2018 +1100 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]> --- src/amd/common/ac_nir_to_llvm.c | 4 ---- src/amd/common/ac_nir_to_llvm.h | 5 +++++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index b3336ffafe..bcacd4953f 100644 --- a/src/amd/common/ac_nir_to_llvm.c +++ b/src/amd/common/ac_nir_to_llvm.c @@ -3976,10 +3976,6 @@ static LLVMValueRef visit_var_atomic(struct nir_to_llvm_context *ctx, return result; } -#define INTERP_CENTER 0 -#define INTERP_CENTROID 1 -#define INTERP_SAMPLE 2 - static LLVMValueRef lookup_interp_param(struct nir_to_llvm_context *ctx, enum glsl_interp_mode interp, unsigned location) { diff --git a/src/amd/common/ac_nir_to_llvm.h b/src/amd/common/ac_nir_to_llvm.h index 1484bf1d83..023200ace8 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 _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
