From 43d7305a405c82e81c9b7b3cc4958169b13777bb Mon Sep 17 00:00:00 2001 From: Bas Nieuwenhuizen Date: Tue, 12 Apr 2016 20:28:46 +0200 Subject: radeonsi: Allow TES distribution between shader engines. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Nicolai Hähnle Reviewed-by: Marek Olšák --- src/gallium/drivers/radeonsi/sid.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gallium/drivers/radeonsi/sid.h') 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 -- cgit v1.2.3