From 410805fa7d21ddd982aedc7720d9d924bacbd183 Mon Sep 17 00:00:00 2001 From: pgm1207 <104554896+pgm1207@users.noreply.github.com> Date: Wed, 18 Nov 2026 20:19:04 +0100 Subject: [PATCH 1/3] vk: maxUniformBufferRange 16 KiB -> 128 MiB (port of Mesa 764198392) UBO loads go through generic Buffer descriptors with a 32-bit size (mali_pack_buffer), so the 16 KiB Vulkan minimum was only a conservative report. DXVK/vkd3d want 64 KiB. --- vk/src/mali_physical_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vk/src/mali_physical_device.c b/vk/src/mali_physical_device.c index 8d5ce63b..d991b908 100644 --- a/vk/src/mali_physical_device.c +++ b/vk/src/mali_physical_device.c @@ -33,7 +33,7 @@ mali_get_properties(const struct mali_gpu_info *gpu, struct vk_properties *p) .maxImageDimensionCube = 4096, .maxImageArrayLayers = 256, .maxTexelBufferElements = 65536, - .maxUniformBufferRange = 16384, + .maxUniformBufferRange = 1u << 27, /* UBOs are generic 32-bit-size Buffer descriptors on v10+ (mali_pack_buffer); same bound as maxStorageBufferRange. Mesa 764198392 (panvk v9+) */ .maxStorageBufferRange = 1u << 27, .maxPushConstantsSize = 128, .maxMemoryAllocationCount = 4096, From 1f3adaf34830a4aafc8c366c11f8bc1ced903cb4 Mon Sep 17 00:00:00 2001 From: pgm1207 <104554896+pgm1207@users.noreply.github.com> Date: Wed, 18 Nov 2026 21:50:06 +0100 Subject: [PATCH 2/3] vk: maxUniformBufferRange 1 MiB (PanVK-on-Poco ceiling), not 128 MiB; t_vk_info checks UBO range <= storage range and maxBufferSize Review (codex P2, coderabbit): 128 MiB violated the t_vk_info ceiling and R4-PLAN rule 'never above what we exercise'; no test binds a UBO that large. --- R4-PLAN.md | 2 +- vk/deqp/lists | 1 + vk/deqp/out | 1 + vk/src/mali_physical_device.c | 2 +- vk/tests/t_vk_info.c | 1 + 5 files changed, 5 insertions(+), 2 deletions(-) create mode 120000 vk/deqp/lists create mode 120000 vk/deqp/out diff --git a/R4-PLAN.md b/R4-PLAN.md index 38606c03..6677862d 100644 --- a/R4-PLAN.md +++ b/R4-PLAN.md @@ -42,7 +42,7 @@ Sum without M12: 48 d; with: 55 d. M0-M2 give the early "DXVK instance creates" ## R4-M1 status (2026-11-17) - Done offline (fake v11+v13, `vk/check.sh` all OK, commit "R4-M1: Vulkan 1.3 device"): `MALI_DEVICE_API_VERSION` 1.3; Vulkan11/12/13 properties filled (subgroupSize/min/max 16, no subgroup ops advertised, driverID MESA_PANVK as nearest sibling, conformanceVersion 0.0.0.0 = no claim, UUIDs, maxPerSetDescriptors 1024, maxMemoryAllocationSize/maxBufferSize 1 GiB, float-controls independence NONE). - Features true (each probed by `vk/tests/t_vk_info.c`, any other bit fails the test): timelineSemaphore, textureCompressionBC, hostQueryReset, synchronization2, dynamicRendering (draw coverage t_vk_draw), maintenance4, privateData. All others false; geometryShader rejected at CreateDevice. -- Limits stay at the 1.0 minima (never above what we exercise); t_vk_info checks them against spec minimum and the PanVK-on-Poco ceiling (R4-ORACLE). +- maxUniformBufferRange is 1 MiB (was 16 KiB): the PanVK-on-Poco value, proven on this HW with the same Buffer descriptor; DXVK/vkd3d want 64 KiB. Not raised to 128 MiB because no test binds a UBO that large. Other limits stay at the 1.0 minima (never above what we exercise); t_vk_info checks them against spec minimum and the PanVK-on-Poco ceiling (R4-ORACLE). - New stubs: GetBufferOpaqueCaptureAddress, GetDeviceMemoryOpaqueCaptureAddress, GetDeviceImageSparseMemoryRequirements (rest of the 1.0-1.3 device entrypoints come from vk_common_*; t_vk_info checks ~75 names via vkGetDeviceProcAddr). - Guest (Poco) verification: see below once done. - Guest verification (Poco G925, 2026-11-17): real `vulkaninfo --summary` and full `vulkaninfo` (540 lines, rc 0, no error/VUID/invalid lines) load our ICD, `apiVersion = 1.3.363`, driverID PANVK, conformanceVersion 0.0.0.0; `t_vk_info` passes on the real device (incl. QueueSubmit2 + timeline wait, host query reset, privateData); dump saved as `vk/R4-ORACLE/vulkaninfo-ours-poco-r4m1.txt`; guest script `vk/tests/r4m1guest.sh` via `scripts/quick/qdrv`. diff --git a/vk/deqp/lists b/vk/deqp/lists new file mode 120000 index 00000000..f137111e --- /dev/null +++ b/vk/deqp/lists @@ -0,0 +1 @@ +/home/pgm1207/Documents/scripts/mali-open/vk/deqp/lists \ No newline at end of file diff --git a/vk/deqp/out b/vk/deqp/out new file mode 120000 index 00000000..7d2d4196 --- /dev/null +++ b/vk/deqp/out @@ -0,0 +1 @@ +/home/pgm1207/Documents/scripts/mali-open/vk/deqp/out \ No newline at end of file diff --git a/vk/src/mali_physical_device.c b/vk/src/mali_physical_device.c index d991b908..decd845f 100644 --- a/vk/src/mali_physical_device.c +++ b/vk/src/mali_physical_device.c @@ -33,7 +33,7 @@ mali_get_properties(const struct mali_gpu_info *gpu, struct vk_properties *p) .maxImageDimensionCube = 4096, .maxImageArrayLayers = 256, .maxTexelBufferElements = 65536, - .maxUniformBufferRange = 1u << 27, /* UBOs are generic 32-bit-size Buffer descriptors on v10+ (mali_pack_buffer); same bound as maxStorageBufferRange. Mesa 764198392 (panvk v9+) */ + .maxUniformBufferRange = 1u << 20, /* 1 MiB = PanVK-on-Poco ceiling (R4-ORACLE vulkaninfo-panvk-poco.txt), the largest UBO range proven on this HW with the same generic 32-bit-size Buffer descriptor (mali_pack_buffer). Larger values are not exercised by any test; see R4-PLAN.md */ .maxStorageBufferRange = 1u << 27, .maxPushConstantsSize = 128, .maxMemoryAllocationCount = 4096, diff --git a/vk/tests/t_vk_info.c b/vk/tests/t_vk_info.c index 09373a33..6f93a7f0 100644 --- a/vk/tests/t_vk_info.c +++ b/vk/tests/t_vk_info.c @@ -135,6 +135,7 @@ main(int argc, char **argv) CHECK(L->maxImageDimension2D >= 4096 && L->maxFramebufferWidth >= 4096 && L->maxColorAttachments >= 4, "image minimums"); CHECK(L->maxPushConstantsSize >= 128 && L->maxPushConstantsSize <= 256, "push constants"); CHECK(L->maxUniformBufferRange >= 16384 && L->maxUniformBufferRange <= 1048576, "ubo range"); + CHECK(L->maxUniformBufferRange <= L->maxStorageBufferRange && L->maxUniformBufferRange <= m4.maxBufferSize, "ubo range bindable: <= storage range and maxBufferSize"); CHECK(L->maxBoundDescriptorSets >= 4 && L->maxBoundDescriptorSets <= 7, "bound sets"); CHECK(L->maxComputeWorkGroupInvocations >= 128 && L->maxComputeWorkGroupInvocations <= 1024, "wg invocations"); CHECK(L->maxComputeSharedMemorySize >= 16384 && L->maxComputeSharedMemorySize <= 32768, "shared mem"); From 7da8321701e089547e66cfb534008e43665bc1cb Mon Sep 17 00:00:00 2001 From: pgm1207 <104554896+pgm1207@users.noreply.github.com> Date: Wed, 18 Nov 2026 23:46:34 +0100 Subject: [PATCH 3/3] Remove accidentally committed local symlinks Drop symlinks to local paths (mode 120000): vk/deqp/lists vk/deqp/out These are already covered by .gitignore on main; files stay untracked locally. --- vk/deqp/lists | 1 - vk/deqp/out | 1 - 2 files changed, 2 deletions(-) delete mode 120000 vk/deqp/lists delete mode 120000 vk/deqp/out diff --git a/vk/deqp/lists b/vk/deqp/lists deleted file mode 120000 index f137111e..00000000 --- a/vk/deqp/lists +++ /dev/null @@ -1 +0,0 @@ -/home/pgm1207/Documents/scripts/mali-open/vk/deqp/lists \ No newline at end of file diff --git a/vk/deqp/out b/vk/deqp/out deleted file mode 120000 index 7d2d4196..00000000 --- a/vk/deqp/out +++ /dev/null @@ -1 +0,0 @@ -/home/pgm1207/Documents/scripts/mali-open/vk/deqp/out \ No newline at end of file