radeonsi: implement nir_intrinsic_load_tcs_num_patches_amd
authorQiang Yu <yuq825@gmail.com>
Mon, 23 May 2022 06:42:06 +0000 (14:42 +0800)
committerMarge Bot <emma+marge@anholt.net>
Mon, 27 Jun 2022 02:38:21 +0000 (02:38 +0000)
commit07e025a390a0d07bdf2d8888a4291f1153f088cd
treef7c3b954f07916c07367f90a4fd1994182a11b1e
parenta1763ad4b362c9f3a1fd12b6d06009b17fac3d24
radeonsi: implement nir_intrinsic_load_tcs_num_patches_amd

Used by ac_nir_lower_tess_io_to_mem.c.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16705>
src/amd/llvm/ac_nir_to_llvm.c
src/gallium/drivers/radeonsi/si_shader_llvm.c