vkback: size the render area to the smallest attachment #54
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/vktory6--VKtory!54
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-54"
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?
@TheRifai on GitHub · 2026-12-01 08:33 UTC · original
TheRifai:vkback-render-area-min→main· +6 −2 · 1 files · 2 commits · merged 2026-12-01 08:47 UTCWhat
In the draw pass,
ext(theVkRenderingInfo::renderArea) was assigned from each bound target in turn, so the last target decided it. With a full-resolution attachment beside a half-resolution one, the render area could exceed the smaller view —VUID-VkRenderingInfo-pNext-06079/-06080(issue #37).Now the extent is the minimum width/height across every color and depth attachment (the console clips to the smaller target). Clipping is counted via
self.note("render area clipped to the smallest attachment"), not silent. Viewport/scissor use the same extent as before.Evidence
cargo check -p vkbackpasses.@vktory6 on GitHub · 2026-12-01 08:47 UTC · original
Merged, thanks! Taking the smallest extent is right, and it's exactly what vkd3d-proton does (
command.c:15282-15304: start at the device's largest framebuffer, then the min over every RTV and the DSV). One commit of mine on top (0ad4584) makes it that simple:extalready starts at the device's largest framebuffer, so oneminper target is all it takes. The first-target flag and the "clipped" note are gone, because targets of different sizes bound together are legal D3D and nothing to count.Check on the reference system (RX 9070 XT): tests and policy pass, and the house-scene validation run shows no new error. 06079/06080 are off the validation list. 08910 (the format mismatch from #37) stays.