tu: Fix the size of patch control points state
authorDanylo Piliaiev <dpiliaiev@igalia.com>
Fri, 14 Oct 2022 14:00:17 +0000 (16:00 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 17 Oct 2022 20:13:43 +0000 (20:13 +0000)
commit3eed5931edf6e5f45378b013ca21f98f17af2b34
tree8061e1bd912106cef0c613058a1a057460acf0ce
parentebf7f7a1827006394fc6355ee245e45b6cfe2793
tu: Fix the size of patch control points state

tu6_emit_patch_control_points was called with CS size calculated
at compile time, but HS params have dynamic size. Account for this.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7479

Fixes: 68f3c38c8011e3ff304a67b6ffb33fd21ee65b0c
("tu: Implement extendedDynamicState2PatchControlPoints")

Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19075>
src/freedreno/vulkan/tu_cmd_buffer.c
src/freedreno/vulkan/tu_pipeline.c
src/freedreno/vulkan/tu_pipeline.h