diff --git a/src/compiler/nir/nir_gather_info.c b/src/compiler/nir/nir_gather_info.c index b019d6b2f92..1fdc6a5f254 100644 --- a/src/compiler/nir/nir_gather_info.c +++ b/src/compiler/nir/nir_gather_info.c @@ -1093,6 +1093,8 @@ nir_shader_gather_info(nir_shader *shader, nir_function_impl *entrypoint) shader->info.per_primitive_inputs = 0; shader->info.per_primitive_outputs = 0; shader->info.per_view_outputs = 0; + shader->info.linear_varyings = 0; + shader->info.perspective_varyings = 0; shader->info.uses_resource_info_query = false;