hk: fix pathological RAM use for tess emulation

These * 32's got added when debugging this I guess and I never took them out.
Ouchie. Reduces memory footprint of tess by 32x. Geez.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36633>
This commit is contained in:
Alyssa Rosenzweig
2025-08-07 09:09:26 -04:00
committed by Marge Bot
parent 7eb7db3613
commit ba00c87fdf
+3 -3
View File
@@ -1306,13 +1306,13 @@ hk_upload_tess_params(struct hk_cmd_buffer *cmd, struct libagx_tess_args *out,
uint32_t alloc = 0;
uint32_t tcs_out_offs = alloc;
alloc += unrolled_patches * args.tcs_stride_el * 4 * 32;
alloc += unrolled_patches * args.tcs_stride_el * sizeof(uint32_t);
uint32_t patch_coord_offs = alloc;
alloc += unrolled_patches * 4 * 32;
alloc += unrolled_patches * sizeof(uint32_t);
uint32_t count_offs = alloc;
alloc += unrolled_patches * sizeof(uint32_t) * 32;
alloc += unrolled_patches * sizeof(uint32_t);
/* Single API draw */
uint32_t draw_offs = alloc;