From 7eeb0fec8d633974ade7b7c3eb5ff7031086c97d Mon Sep 17 00:00:00 2001 From: Iago Toral Quiroga Date: Thu, 22 Sep 2022 11:19:07 +0200 Subject: [PATCH] broadcom/compiler: increase V3D_MAX_BUFFE_RANGE to 2^30 bytes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is the minimum required by KHR_maintenance4 and there is no reason we can't support this. The only restriction we have is that the texture state base address (which comes into play with texel buffers) must be aligned to 4-bits, but this doesn't restrict the size of the buffer, only its base address, and we already have requirements for buffer alignment that ensure this. Fixes: dEQP-VK.api.info.vulkan1p3_limits_validation.khr_maintenance4 Fixes: 2c388c1d ('v3dv: set maxBufferSize property') Acked-by: Eric Engestrom Tested-by: Eric Engestrom Reviewed-by: Alejandro PiƱeiro Part-of: --- src/broadcom/common/v3d_limits.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/broadcom/common/v3d_limits.h b/src/broadcom/common/v3d_limits.h index c47f5338116..755aedd787c 100644 --- a/src/broadcom/common/v3d_limits.h +++ b/src/broadcom/common/v3d_limits.h @@ -45,7 +45,7 @@ #define V3D_MAX_POINT_SIZE 512.0f #define V3D_MAX_LINE_WIDTH 32 -#define V3D_MAX_BUFFER_RANGE (1 << 27) +#define V3D_MAX_BUFFER_RANGE (1 << 30) /* Sub-pixel precission bits in the rasterizer */ #define V3D_COORD_SHIFT 6