panfrost: Prefer sysval for gl_PointCoord on Bifrost
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 1 Jun 2020 22:26:03 +0000 (18:26 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 3 Jun 2020 22:58:46 +0000 (22:58 +0000)
It's like gl_FragCoord. Still not implemented. This unfortunately makes
point sprites a lot more complicated.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5290>

src/gallium/drivers/panfrost/pan_screen.c

index 01a5355b87d3d1792b2538ca90bab87dbc497ef5..b9872398061bf833a0ce01b686d19516e44a445a 100644 (file)
@@ -196,6 +196,7 @@ panfrost_get_param(struct pipe_screen *screen, enum pipe_cap param)
         /* We would prefer varyings on Midgard, but proper sysvals on Bifrost */
         case PIPE_CAP_TGSI_FS_FACE_IS_INTEGER_SYSVAL:
         case PIPE_CAP_TGSI_FS_POSITION_IS_SYSVAL:
+        case PIPE_CAP_TGSI_FS_POINT_IS_SYSVAL:
                 return dev->quirks & IS_BIFROST;
 
         /* I really don't want to set this CAP but let's not swim against the