From 210807a1a4871d8ed2397bbe0b42589a1b504ad9 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Tue, 30 Aug 2022 00:10:54 -0700 Subject: [PATCH] turnip: reduce MAX_STORAGE_BUFFER_RANGE Reduce MAX_STORAGE_BUFFER_RANGE from (1<<29) to (1<<27). While (1<<28) is fine based on my tests, let's match what the latest version of the blob does. Tested on a618 and a635. Part-of: --- src/freedreno/vulkan/tu_common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/freedreno/vulkan/tu_common.h b/src/freedreno/vulkan/tu_common.h index 1a0bbe8efe9..14a72e4de92 100644 --- a/src/freedreno/vulkan/tu_common.h +++ b/src/freedreno/vulkan/tu_common.h @@ -98,8 +98,8 @@ #define TU_MAX_DRM_DEVICES 8 #define MAX_VIEWS 16 #define MAX_BIND_POINTS 2 /* compute + graphics */ -/* The Qualcomm driver exposes 0x20000058 */ -#define MAX_STORAGE_BUFFER_RANGE 0x20000000 +/* match the latest Qualcomm driver which is also a hw limit on later gens */ +#define MAX_STORAGE_BUFFER_RANGE (1u << 27) /* We use ldc for uniform buffer loads, just like the Qualcomm driver, so * expose the same maximum range. * TODO: The SIZE bitfield is 15 bits, and in 4-dword units, so the actual