From 403083744de03173713d699f4cf958ba85248a74 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Thu, 17 Nov 2022 12:20:30 -0800 Subject: [PATCH] iris: Increase the maximum grid size I had simply copied these values from another driver when adding initial compute support to iris. The actual hardware limit is UINT32_MAX (see the GPGPU_WALKER/COMPUTE_WALKER ThreadGroupID{X,Y,Z}Dimension fields). Thanks to Karol Herbst for noticing the unnecessarily low limit. References: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7676 Reviewed-by: Jordan Justen Tested-by: Karol Herbst Part-of: --- src/gallium/drivers/iris/iris_screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/iris/iris_screen.c b/src/gallium/drivers/iris/iris_screen.c index a8e8c3884dd..500fec81801 100644 --- a/src/gallium/drivers/iris/iris_screen.c +++ b/src/gallium/drivers/iris/iris_screen.c @@ -574,7 +574,7 @@ iris_get_compute_param(struct pipe_screen *pscreen, RET((uint64_t []) { 3 }); case PIPE_COMPUTE_CAP_MAX_GRID_SIZE: - RET(((uint64_t []) { 65535, 65535, 65535 })); + RET(((uint64_t []) { UINT32_MAX, UINT32_MAX, UINT32_MAX })); case PIPE_COMPUTE_CAP_MAX_BLOCK_SIZE: /* MaxComputeWorkGroupSize[0..2] */