From 0c5429cc73f6d1787914fcebb4cb95677c8ebb82 Mon Sep 17 00:00:00 2001 From: Marek Olšák <marek.olsak@amd.com> Date: Thu, 2 Aug 2018 20:33:06 -0400 Subject: radeonsi: add flag L2_STREAM for minimal cache usage --- src/amd/common/sid.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/amd/common/sid.h') diff --git a/src/amd/common/sid.h b/src/amd/common/sid.h index 0671f7d3998..d9c4a1a7414 100644 --- a/src/amd/common/sid.h +++ b/src/amd/common/sid.h @@ -294,11 +294,13 @@ #define V_500_GDS 1 /* program SAS to 1 as well */ #define V_500_DATA 2 #define V_500_SRC_ADDR_TC_L2 3 /* new for CIK */ +#define S_500_DST_CACHE_POLICY(x) (((unsigned)(x) & 0x3) << 25) /* CIK+ */ #define S_500_DST_SEL(x) (((unsigned)(x) & 0x3) << 20) #define V_500_DST_ADDR 0 #define V_500_GDS 1 /* program DAS to 1 as well */ #define V_500_NOWHERE 2 /* new for GFX9 */ #define V_500_DST_ADDR_TC_L2 3 /* new for CIK */ +#define S_500_SRC_CACHE_POLICY(x) (((unsigned)(x) & 0x3) << 13) /* CIK+ */ #define S_500_ENGINE(x) ((x) & 0x1) #define V_500_ME 0 #define V_500_PFP 1 -- cgit v1.2.3