d3d12: serve the console unbounded sampler heap as a sampler heap #580
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/580"
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?
Imported from brcly/TuxBox. Originally posted by csj0oe on 2026-11-30T07:48:45Z.
What
The title creates a descriptor heap of guest type 4. The host does not know that type: vkd3d logs
Unhandled type 0x4and answers 0 to the increment query, so every descriptor in the heap would share one slot.guest_increment_sizeandcreate_heaptranslate guest type 4 to the sampler heap for the host, and keep the guestdescforGetDescandSetDescriptorHeaps.Tests
origin/main: vkd3d logsUnhandled type 0x4, and the test fails withthe unbounded sampler heap reported no increment(0).CreateDescriptorHeapreturns S_OK,GetDesc().Typeis 4, and the native increment is nonzero.Not run
NVIDIA, and the Lanes/d3d12 GPU suites that
CONTRIBUTINGasks for on aruntime/d3d12change. The hardware test above is the direct check for this path.Imported from brcly/TuxBox. Originally posted by brcly on 2026-11-30T09:49:28Z.
Thanks. I checked this against our boots before deciding, and I'm holding it for now, because the claim it rests on isn't shown yet.
What our logs show. Each boot has exactly one
Unhandled type 0x4, and it comes fromd3d12_device_get_descriptor_handle_increment_size, right after the device is created. So the title asks for the increment of type 4. There's no sign it creates a type-4 heap: main answersE_NOTIMPLto that today, and I'd expect the title to fail or log something if it did, yet the boot carries on. The test creates the heap itself, so it shows the mapping works, not that the title needs it.Why that matters. Once the type has a heap behind it, the title starts using it, and the sampler mapping is a guess at what type 4 means:
SetDescriptorHeapscall, which is invalid.The only change in title behaviour we'd actually see today is that its increment query returns 32 instead of 0, and we don't know what it does with that.
What would move this forward:
CreateDescriptorHeapwith type 4: its flags, its size, and what main returns.Imported from brcly/TuxBox. Originally posted by csj0oe on 2026-11-30T10:10:25Z.
Closing. You are right that the increment query is the only evidence, and a log line is not the answer you asked for. If a traced boot shows the title calling
CreateDescriptorHeapwith type 4 and what it does with the result, the trace belongs in a PR that fixes the behaviour, not in one that observes it. Branch kept.Pull request closed