pan/bi: Allow no_psiz variant with IDVS2

This can be supported for IDVS2 and that will reduce arch diffs on panvk
and the Gallium driver.

Signed-off-by: Mary Guillemard <mary.guillemard@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34032>
This commit is contained in:
Mary Guillemard
2025-03-12 14:15:17 +01:00
parent 0f56b59cac
commit 2d7c402645

View File

@@ -6200,7 +6200,8 @@ bi_compile_variant(nir_shader *nir,
}
}
if (idvs == BI_IDVS_POSITION && !nir->info.internal &&
if ((idvs == BI_IDVS_POSITION || idvs == BI_IDVS_ALL) &&
!nir->info.internal &&
nir->info.outputs_written & BITFIELD_BIT(VARYING_SLOT_PSIZ)) {
/* Find the psiz write */
bi_instr *write = NULL;