diff options
author | Dave Airlie <[email protected]> | 2016-10-10 03:20:36 +0100 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2016-10-19 10:17:48 +1000 |
commit | b0e11a153c4b8cd9bf29bdb8e26a776de241a5b4 (patch) | |
tree | 92b906dcddf195e9e52cd8a83239b2a6b793dbe8 /src/amd/common/ac_nir_to_llvm.h | |
parent | 6c3bd1cdb3c60a0140b57a2064e02f5869b0f9bc (diff) |
radv: start using defines for the user sgpr offsets
This adds some comments and adds defines for the user sgprs,
so that we can move them around easier later and not have
to change/revalidate every one of these.
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/common/ac_nir_to_llvm.h')
-rw-r--r-- | src/amd/common/ac_nir_to_llvm.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/amd/common/ac_nir_to_llvm.h b/src/amd/common/ac_nir_to_llvm.h index 550fe845074..a17caf2853e 100644 --- a/src/amd/common/ac_nir_to_llvm.h +++ b/src/amd/common/ac_nir_to_llvm.h @@ -96,6 +96,23 @@ void ac_compile_nir_shader(LLVMTargetMachineRef tm, const struct ac_nir_compiler_options *options, bool dump_shader); +/* SHADER ABI defines */ + +/* offset in dwords */ +#define AC_USERDATA_DESCRIPTOR_SET_0 0 +#define AC_USERDATA_DESCRIPTOR_SET_1 2 +#define AC_USERDATA_DESCRIPTOR_SET_2 4 +#define AC_USERDATA_DESCRIPTOR_SET_3 6 +#define AC_USERDATA_PUSH_CONST_DYN 8 + +#define AC_USERDATA_VS_VERTEX_BUFFERS 10 +#define AC_USERDATA_VS_BASE_VERTEX 12 +#define AC_USERDATA_VS_START_INSTANCE 13 + +#define AC_USERDATA_PS_SAMPLE_POS 10 + +#define AC_USERDATA_CS_GRID_SIZE 10 + #ifdef __cplusplus extern "C" #endif |