mesa/arbprog: Move the GLSLFragCoordIsSysVal handling to prog_to_nir.
authorEmma Anholt <emma@anholt.net>
Wed, 13 Jul 2022 19:29:30 +0000 (12:29 -0700)
committerMarge Bot <emma+marge@anholt.net>
Sat, 16 Jul 2022 04:08:32 +0000 (04:08 +0000)
commit153f7b8852c1984c65340b7edd587fe1f4927660
tree0cc7b4a3a2de56ed3f0e90182135d6bea48e8d12
parentc002bbeb2f7a1bf2d5c020abdddcf25909c447b6
mesa/arbprog: Move the GLSLFragCoordIsSysVal handling to prog_to_nir.

We don't need to go grubbing around in the ARB program when we can use the
right variable type at prog_to_nir time.  This does leave
fp->system_values_read/inputs_read as they were, but I don't see anywhere
that that matters (the NIR will have its info gathered appropriately, and
other lowering may also cause mismatch between the gl_program and the
NIR).

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17528>
src/mesa/program/prog_to_nir.c
src/mesa/program/prog_to_nir.h
src/mesa/program/programopt.c
src/mesa/program/programopt.h
src/mesa/state_tracker/st_program.c