diff options
author | Bas Nieuwenhuizen <[email protected]> | 2016-04-21 01:19:28 +0200 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2016-04-21 12:50:58 +0200 |
commit | f45f54e14ac54460f2785bc14fc1f9220a0a763d (patch) | |
tree | 0ac2d29d1477a0942db1902e233fcbcee3ffdb1b /src/gallium/drivers/radeonsi/sid.h | |
parent | d4a21a0de073d302b3afb2c8896923e7cbf93b79 (diff) |
radeonsi: Use defines for CONTEXT_CONTROL instead of magic values.
v2: Use field names provided by Nicolai.
v3: Updated to use CONTEXT_CONTROL prefix.
Signed-off-by: Bas Nieuwenhuizen <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/sid.h')
-rw-r--r-- | src/gallium/drivers/radeonsi/sid.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/sid.h b/src/gallium/drivers/radeonsi/sid.h index 516e114a6c0..9daefdb5f31 100644 --- a/src/gallium/drivers/radeonsi/sid.h +++ b/src/gallium/drivers/radeonsi/sid.h @@ -88,6 +88,9 @@ #define PKT3_INDEX_BASE 0x26 #define PKT3_DRAW_INDEX_2 0x27 #define PKT3_CONTEXT_CONTROL 0x28 +#define CONTEXT_CONTROL_LOAD_ENABLE(x) (((x) & 0x1) << 31) +#define CONTEXT_CONTROL_LOAD_CE_RAM(x) (((x) & 0x1) << 28) +#define CONTEXT_CONTROL_SHADOW_ENABLE(x) (((x) & 0x1) << 31) #define PKT3_INDEX_TYPE 0x2A #define PKT3_DRAW_INDIRECT_MULTI 0x2C #define PKT3_DRAW_INDEX_AUTO 0x2D |