mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:50:52 +01:00
[PR #1860] [MERGED] D3D-3D-VIEW-ARRAY-RANGE: use the single array layer for Vulkan 3D views #1873
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1873
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1860
Author: @lixonik
Created: 11/25/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @aslan2142
Base:
main← Head:fix/title-3d-view-array-range📝 Commits (1)
8573141Use the single Vulkan array layer for 3D image views📊 Changes
3 files changed (+35 additions, -6 deletions)
View changed files
📝
runtime/shims/d3d12_vulkan_device.cpp(+6 -6)📝
runtime/src/gfx10_descriptors.h(+10 -0)📝
runtime/test/gfx10_descriptors_test.cpp(+19 -0)📄 Description
Claimed in the coordination issue as: D3D-3D-VIEW-ARRAY-RANGE
What and why
A title-written GFX10 Texture3D descriptor can carry a nonzero
BASE_ARRAYin the same word as its depth. The runtime used that field as Vulkan'sbaseArrayLayer. Both the sampled and storage image view creation paths now use array layer zero and a count of one for a 3D view. Mips, aspects, 2D array layers and the original descriptor bytes used as the bindless key are preserved.In GFX10 SRV mode, hardware ignores the volume's
BASE_ARRAY. In raw UAV mode it is a W-slice offset. The raw descriptor path refuses that offset rather than binding a whole-mip storage view in its place. The API path continues to use Vulkan's sliced-view extension for partial D3D12 Texture3D UAVs.Runtime finding · Mesa's GFX10 descriptor builder · Vulkan image view valid usage
Tested
gfx10_descriptors_testdirectly with MSVC. The new assertions cover sampled 3D T#s with nonzeroBASE_ARRAY, recognition of a raw UAV W-slice offset, the mip range and 2D array layers. Restoring the old range mapping made the new 3D assertion fail.BASE_ARRAYtriggered the older layer's 01482 and 01483 VUIDs with the old range. The fixed range created the view with zero validation errors.python -I -B scripts/run_semantic_tests.py tests/semanticpassed 6,261 tests across 489 files.GPUs tested: n/a (software Vulkan on lavapipe)
AI-assisted.
Checklist
mainand merges cleanly.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.