radv: Move some helper functions to the radv_shader.h header file.
authorTimur Kristóf <timur.kristof@gmail.com>
Mon, 24 Feb 2020 14:44:48 +0000 (15:44 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 11 Mar 2020 08:34:10 +0000 (08:34 +0000)
commit346bd0c623fdc9882e00fdb3301b73afb9fd3fe8
treea9b08824765f51fc2cee9d20aee464eef79682b2
parent78d42d41d47f65f20cfd9ce984eebb9282ed96e4
radv: Move some helper functions to the radv_shader.h header file.

Move calculate_tess_lds_size and get_tcs_num_patches to radv_shader.h
ACO will need to call these functions too.

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