diff options
author | Dave Airlie <airlied@redhat.com> | 2017-03-30 07:49:59 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2017-04-01 07:15:12 +1000 |
commit | a5136a97f7707b54bdaf5b92d9b6d9f3626732b5 (patch) | |
tree | 39747714c699a457ab57dd437e6b26a7c29e9ff8 /src/amd/common/ac_nir_to_llvm.h | |
parent | 0604284e3f5d95845a1203dd1a9abc3d9849fe39 (diff) |
radv: use defines for ring descriptor offsets.
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/amd/common/ac_nir_to_llvm.h')
-rw-r--r-- | src/amd/common/ac_nir_to_llvm.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/amd/common/ac_nir_to_llvm.h b/src/amd/common/ac_nir_to_llvm.h index 15afbd7745..24eb16013b 100644 --- a/src/amd/common/ac_nir_to_llvm.h +++ b/src/amd/common/ac_nir_to_llvm.h @@ -83,6 +83,13 @@ enum ac_ud_index { AC_UD_MAX_UD = AC_UD_VS_MAX_UD, }; +/* descriptor index into scratch ring offsets */ +#define RING_SCRATCH 0 +#define RING_ESGS_VS 1 +#define RING_ESGS_GS 2 +#define RING_GSVS_VS 3 +#define RING_GSVS_GS 4 + // Match MAX_SETS from radv_descriptor_set.h #define AC_UD_MAX_SETS MAX_SETS |