radv: reduce TCS_OFFCHIP_LAYOUT_NUM_PATCHES to 6-bits

RADV clamps the number of tess patches to 40.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24745>
This commit is contained in:
Samuel Pitoiset
2023-08-14 10:05:31 +02:00
committed by Marge Bot
parent 20381eb522
commit c6a56e6b3d
2 changed files with 3 additions and 3 deletions

View File

@@ -200,8 +200,8 @@ enum radv_ud_index {
#define TCS_OFFCHIP_LAYOUT_PATCH_CONTROL_POINTS__SHIFT 0
#define TCS_OFFCHIP_LAYOUT_PATCH_CONTROL_POINTS__MASK 0x3f
#define TCS_OFFCHIP_LAYOUT_NUM_PATCHES__SHIFT 6
#define TCS_OFFCHIP_LAYOUT_NUM_PATCHES__MASK 0xff
#define TCS_OFFCHIP_LAYOUT_LSHS_VERTEX_STRIDE__SHIFT 14
#define TCS_OFFCHIP_LAYOUT_NUM_PATCHES__MASK 0x3f
#define TCS_OFFCHIP_LAYOUT_LSHS_VERTEX_STRIDE__SHIFT 12
#define TCS_OFFCHIP_LAYOUT_LSHS_VERTEX_STRIDE__MASK 0xff /* max 32 * 4 + 1 (to reduce LDS bank conflicts) */
#define TES_STATE_NUM_PATCHES__SHIFT 0

View File

@@ -65,7 +65,7 @@ struct radv_shader_args {
/* TCS */
/* # [0:5] = the number of patch control points
* # [6:13] = the number of tessellation patches
* # [6:11] = the number of tessellation patches
*/
struct ac_arg tcs_offchip_layout;
struct ac_arg tcs_epilog_pc;