radv: initialize tcs.tes_{patch}_inputs_read to a default value
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 26 Jul 2023 15:31:52 +0000 (17:31 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 28 Jul 2023 08:21:40 +0000 (08:21 +0000)
For shader object when a TCS is not linked to a TES at compile time.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24346>

src/amd/vulkan/radv_shader_info.c

index 6f148aa..02935f3 100644 (file)
@@ -465,6 +465,8 @@ gather_shader_info_tcs(struct radv_device *device, const nir_shader *nir, const
                        struct radv_shader_info *info)
 {
    info->tcs.tcs_vertices_out = nir->info.tess.tcs_vertices_out;
+   info->tcs.tes_inputs_read = ~0ULL;
+   info->tcs.tes_patch_inputs_read = ~0ULL;
 
    if (!(pipeline_key->dynamic_patch_control_points)) {
       /* Number of tessellation patches per workgroup processed by the current pipeline. */