Mesa (main): panfrost: Fix PIPE_COMPUTE_CAP_SUBGROUP_SIZE

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Jul 8 01:29:12 UTC 2022


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

Author: Alyssa Rosenzweig <alyssa at collabora.com>
Date:   Fri Jun 24 17:33:15 2022 -0400

panfrost: Fix PIPE_COMPUTE_CAP_SUBGROUP_SIZE

Use the new helper to implement the CAP, correctly handling Midgard and Valhall.

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

---

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

diff --git a/src/gallium/drivers/panfrost/pan_screen.c b/src/gallium/drivers/panfrost/pan_screen.c
index 1d4bbf2ac2b..f0bd8b3b524 100644
--- a/src/gallium/drivers/panfrost/pan_screen.c
+++ b/src/gallium/drivers/panfrost/pan_screen.c
@@ -721,7 +721,7 @@ panfrost_get_compute_param(struct pipe_screen *pscreen, enum pipe_shader_ir ir_t
 		RET((uint32_t []) { 1 });
 
 	case PIPE_COMPUTE_CAP_SUBGROUP_SIZE:
-		RET((uint32_t []) { dev->arch >= 7 ? 8 : 4 });
+		RET((uint32_t []) { pan_subgroup_size(dev->arch) });
 
 	case PIPE_COMPUTE_CAP_MAX_VARIABLE_THREADS_PER_BLOCK:
 		RET((uint64_t []) { 1024 }); // TODO



More information about the mesa-commit mailing list