radv: move emitting PRIMGROUP_SIZE for <= GFX9 from the cmdbuf
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 29 Aug 2022 16:27:52 +0000 (18:27 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 13 Sep 2022 08:24:14 +0000 (08:24 +0000)
commit0bf822144f1d14f287e3d8656a7b326e0a4824d5
treea4ee192d19c246223bcb35ab3bec1e893af1619b
parent556b29797724bdf92bfb920fc30c2ccc9dd8efd1
radv: move emitting PRIMGROUP_SIZE for <= GFX9 from the cmdbuf

The number of tessellation patches that is computed from the number
of patch control points might change dynamically too.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18344>
src/amd/vulkan/radv_cmd_buffer.c
src/amd/vulkan/radv_pipeline.c
src/amd/vulkan/radv_private.h
src/amd/vulkan/si_cmd_buffer.c