radv: do not always copy the number of tess patches to TES

This is only needed when the number of patch control points is known
at compile time. Adding a check makes it less confusing.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24346>
This commit is contained in:
Samuel Pitoiset
2023-07-26 17:30:27 +02:00
committed by Marge Bot
parent f1b98f32c4
commit afa5b83152
+2 -1
View File
@@ -1600,7 +1600,8 @@ radv_link_shaders_info(struct radv_device *device, struct radv_shader_stage *pro
tcs_stage->info.tcs.tes_inputs_read = tes_stage->nir->info.inputs_read;
tcs_stage->info.tcs.tes_patch_inputs_read = tes_stage->nir->info.patch_inputs_read;
tes_stage->info.num_tess_patches = tcs_stage->info.num_tess_patches;
if (!pipeline_key->dynamic_patch_control_points)
tes_stage->info.num_tess_patches = tcs_stage->info.num_tess_patches;
}
/* Task/mesh I/O uses the task ring buffers. */