panfrost: Don't set CAP_TGSI_FS_COORD_PIXEL_CENTER_INTEGER
authorAlyssa Rosenzweig <alyssa@collabora.com>
Mon, 27 Sep 2021 21:32:57 +0000 (17:32 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 5 Oct 2021 21:13:52 +0000 (21:13 +0000)
commit12facf23b1f1fd8668e057f13bcc69356fd89b52
treed9c91b224dbfcdf2b9a6385a23e44a14b74400f5
parentb88225378d31b6f3d589145f675b3e25d0431b17
panfrost: Don't set CAP_TGSI_FS_COORD_PIXEL_CENTER_INTEGER

We already set HALF_INTEGER, which is what the compiler actually does.
If we also set PIPE_CAP_TGSI_FS_COORD_PIXEL_CENTER_INTEGER, we get
incorrect lowering. Only set the CAP we respect.

On Bifrost, this convention is arbitrary. We should consider moving the
Bifrost lowering into NIR to optimize this better...

Fixes Piglit glsl-arb-fragment-coord-conventions.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13070>
src/gallium/drivers/panfrost/pan_screen.c
src/panfrost/ci/piglit-panfrost-g52-fails.txt