nir/lower_pntc_ytransform: Support PointCoordIsSysval
authorAlyssa Rosenzweig <alyssa@collabora.com>
Mon, 27 Sep 2021 21:15:38 +0000 (17:15 -0400)
committerMarge Bot <emma+marge@anholt.net>
Fri, 12 Nov 2021 12:34:14 +0000 (12:34 +0000)
commite257344a82417b6dc28d5834a0a9376fefd7f5ac
treeeed73778d8f0f9026a85859c1bfce71f6937ac66
parent43322ceccdfa67fcd133c94f51adfaefe2d99db2
nir/lower_pntc_ytransform: Support PointCoordIsSysval

Pattern match the point coord sysval and support lowering it as well.
This is required to handle flipped framebuffers on Bifrost. However,
what this pass normalizes to is the opposite of the hardware mode we
used on Bifrost before, so we need to swap modes at the same time to
prevent regressions.

Fixes Piglit glsl-fs-pointcoord and glsl-fs-pointcoord_gles2

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13073>
src/compiler/nir/nir_lower_pntc_ytransform.c
src/panfrost/ci/panfrost-g52-fails.txt
src/panfrost/lib/pan_shader.h