pan/shader: Fix FS varyings.input_count initialization on v9+

There's no varying outputs on a fragment shader, but we need to
initialize the varying inputs.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30695>
This commit is contained in:
Boris Brezillon
2024-06-28 09:44:44 +02:00
committed by Marge Bot
parent 65d86cc5df
commit fa24b3f4d0
+2 -2
View File
@@ -193,8 +193,8 @@ GENX(pan_shader_compile)(nir_shader *s, struct panfrost_compile_inputs *inputs,
(s->info.inputs_read & (1 << VARYING_SLOT_FACE)) ||
BITSET_TEST(s->info.system_values_read, SYSTEM_VALUE_FRONT_FACE);
#if PAN_ARCH >= 9
info->varyings.output_count =
util_last_bit(s->info.outputs_read >> VARYING_SLOT_VAR0);
info->varyings.input_count =
util_last_bit(s->info.inputs_read >> VARYING_SLOT_VAR0);
#endif
break;
default: