Mesa (master): panfrost: Prefer sysval for gl_PointCoord on Bifrost

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jun 3 23:11:25 UTC 2020


Module: Mesa
Branch: master
Commit: 3f8abd867616fc4ceccb2877cd1e629232397fb4
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3f8abd867616fc4ceccb2877cd1e629232397fb4

Author: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Date:   Mon Jun  1 18:26:03 2020 -0400

panfrost: Prefer sysval for gl_PointCoord on Bifrost

It's like gl_FragCoord. Still not implemented. This unfortunately makes
point sprites a lot more complicated.

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

---

 src/gallium/drivers/panfrost/pan_screen.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/panfrost/pan_screen.c b/src/gallium/drivers/panfrost/pan_screen.c
index 01a5355b87d..b9872398061 100644
--- a/src/gallium/drivers/panfrost/pan_screen.c
+++ b/src/gallium/drivers/panfrost/pan_screen.c
@@ -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



More information about the mesa-commit mailing list