Mesa (main): panfrost: Enable QUAD_STRIP and POLYGON on v6
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Jul 8 01:48:58 UTC 2022
Module: Mesa
Branch: main
Commit: dc37ad2a738064da3660fc287883f3496441bba7
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=dc37ad2a738064da3660fc287883f3496441bba7
Author: Icecream95 <ixn at disroot.org>
Date: Thu May 19 23:01:56 2022 +1200
panfrost: Enable QUAD_STRIP and POLYGON on v6
I wrote fiction about dreaming that these were supported but after
waking finding that they were not. Somehow I came to consider that
fiction as fact and I never thought to test if they did work.
While reverse engineering the polygon list format, I found that these
were supported after all.
Reviewed-by: Alyssa Rosenzweig <alyssa at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17371>
---
src/gallium/drivers/panfrost/pan_screen.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/gallium/drivers/panfrost/pan_screen.c b/src/gallium/drivers/panfrost/pan_screen.c
index f0bd8b3b524..a8f16868c34 100644
--- a/src/gallium/drivers/panfrost/pan_screen.c
+++ b/src/gallium/drivers/panfrost/pan_screen.c
@@ -317,10 +317,11 @@ panfrost_get_param(struct pipe_screen *screen, enum pipe_cap param)
case PIPE_CAP_SUPPORTED_PRIM_MODES:
case PIPE_CAP_SUPPORTED_PRIM_MODES_WITH_RESTART: {
- /* Mali supports GLES and QUADS. Midgard supports more */
+ /* Mali supports GLES and QUADS. Midgard and v6 Bifrost
+ * support more */
uint32_t modes = BITFIELD_MASK(PIPE_PRIM_QUADS + 1);
- if (dev->arch <= 5) {
+ if (dev->arch <= 6) {
modes |= BITFIELD_BIT(PIPE_PRIM_QUAD_STRIP);
modes |= BITFIELD_BIT(PIPE_PRIM_POLYGON);
}
More information about the mesa-commit
mailing list