From 05755d858bc42a40af05dc60a5913785933ee93f Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 7 Jun 2021 17:40:17 -0400 Subject: [PATCH] panfrost: Lower max compute size Match the DDK's limit (Mali G52), I think there's undocumented errata here. Fixes KHR-GLES31.core.texture_buffer.texture_buffer_operations_image_store Signed-off-by: Alyssa Rosenzweig Part-of: --- src/gallium/drivers/panfrost/pan_screen.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/panfrost/pan_screen.c b/src/gallium/drivers/panfrost/pan_screen.c index d0d5889..7ddccc3 100644 --- a/src/gallium/drivers/panfrost/pan_screen.c +++ b/src/gallium/drivers/panfrost/pan_screen.c @@ -652,8 +652,11 @@ panfrost_get_compute_param(struct pipe_screen *pscreen, enum pipe_shader_ir ir_t case PIPE_COMPUTE_CAP_MAX_GRID_SIZE: RET(((uint64_t []) { 65535, 65535, 65535 })); - case PIPE_COMPUTE_CAP_MAX_BLOCK_SIZE: - RET(((uint64_t []) { 1024, 1024, 64 })); + case PIPE_COMPUTE_CAP_MAX_BLOCK_SIZE: + /* Unpredictable behaviour at larger sizes. Mali-G52 advertises + * 384x384x384. The smaller size is advertised by Mali-T628, + * use min until we have a need to key by arch */ + RET(((uint64_t []) { 256, 256, 256 })); case PIPE_COMPUTE_CAP_MAX_THREADS_PER_BLOCK: RET((uint64_t []) { 1024 }); -- 2.7.4