asahi: Set frag coord caps correctly
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Sat, 26 Nov 2022 00:27:20 +0000 (19:27 -0500)
committerMarge Bot <emma+marge@anholt.net>
Thu, 1 Dec 2022 05:58:30 +0000 (05:58 +0000)
Fixes ./glsl-arb-fragment-coord-conventions, c.f. 12facf23b1f ("panfrost: Don't set CAP_TGSI_FS_COORD_PIXEL_CENTER_INTEGER").

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

src/gallium/drivers/asahi/agx_pipe.c

index c4f76e02a83281cbed63c1b634882109fe95ed82..eef9f4460678a1a3841ab4ad90361d5155c367b8 100644 (file)
@@ -1327,18 +1327,16 @@ agx_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
    case PIPE_CAP_MAX_TEXTURE_CUBE_LEVELS:
       return 13;
 
-   case PIPE_CAP_FS_COORD_ORIGIN_LOWER_LEFT:
-      return 0;
-
    case PIPE_CAP_FS_COORD_ORIGIN_UPPER_LEFT:
    case PIPE_CAP_FS_COORD_PIXEL_CENTER_HALF_INTEGER:
-   case PIPE_CAP_FS_COORD_PIXEL_CENTER_INTEGER:
    case PIPE_CAP_TGSI_TEXCOORD:
    case PIPE_CAP_FS_FACE_IS_INTEGER_SYSVAL:
    case PIPE_CAP_FS_POSITION_IS_SYSVAL:
    case PIPE_CAP_SEAMLESS_CUBE_MAP:
    case PIPE_CAP_SEAMLESS_CUBE_MAP_PER_TEXTURE:
       return true;
+   case PIPE_CAP_FS_COORD_ORIGIN_LOWER_LEFT:
+   case PIPE_CAP_FS_COORD_PIXEL_CENTER_INTEGER:
    case PIPE_CAP_FS_POINT_IS_SYSVAL:
       return false;