panfrost: report correct MAX_VARYINGS

Fixes packing-varying piglit failures

Cc: mesa-stable
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29017>
(cherry picked from commit 81f42d82ed)
This commit is contained in:
Constantine Shablia 2024-05-02 12:23:19 +03:00 committed by Eric Engestrom
parent 965f8b10d5
commit 063edd4df1
2 changed files with 2 additions and 4 deletions

View file

@ -44,7 +44,7 @@
"description": "panfrost: report correct MAX_VARYINGS",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -298,9 +298,7 @@ panfrost_get_param(struct pipe_screen *screen, enum pipe_cap param)
return 4;
case PIPE_CAP_MAX_VARYINGS:
/* Return the GLSL maximum. The internal maximum
* PAN_MAX_VARYINGS accommodates internal varyings. */
return MAX_VARYING;
return dev->arch >= 9 ? 16 : 32;
/* Removed in v6 (Bifrost) */
case PIPE_CAP_GL_CLAMP: