diff options
author | Bas Nieuwenhuizen <[email protected]> | 2016-04-12 20:28:46 +0200 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2016-05-26 22:07:04 +0200 |
commit | 43d7305a405c82e81c9b7b3cc4958169b13777bb (patch) | |
tree | 00f3205393b0ba9b9897b0e19c0a69869068f7e0 /src/gallium/drivers/radeonsi/sid.h | |
parent | f91c85b29b8261ab3f44d292ed2130d4f577d976 (diff) |
radeonsi: Allow TES distribution between shader engines.
The R_028B50_VGT_TESS_DISTRIBUTION value is copied from
amdgpu-pro. Smaller values in the ACCUM fields seem to
decrease the performance advantage from this patch, higher
values don't seem to matter.
v2: Add distribution mode field enums.
Signed-off-by: Bas Nieuwenhuizen <[email protected]>
Reviewed-by: Nicolai Hähnle <[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 dcd63727058..25f8cf5cee4 100644 --- a/src/gallium/drivers/radeonsi/sid.h +++ b/src/gallium/drivers/radeonsi/sid.h @@ -8074,6 +8074,9 @@ #define S_028B6C_DISTRIBUTION_MODE(x) (((unsigned)(x) & 0x03) << 17) #define G_028B6C_DISTRIBUTION_MODE(x) (((x) >> 17) & 0x03) #define C_028B6C_DISTRIBUTION_MODE 0xFFF9FFFF +#define V_028B6C_DISTRIBUTION_MODE_NO_DIST 0x00 +#define V_028B6C_DISTRIBUTION_MODE_PATCHES 0x01 +#define V_028B6C_DISTRIBUTION_MODE_DONUTS 0x02 #define S_028B6C_MTYPE(x) (((unsigned)(x) & 0x03) << 19) #define G_028B6C_MTYPE(x) (((x) >> 19) & 0x03) #define C_028B6C_MTYPE 0xFFE7FFFF |