vkback: skip a zero-size push and give a targetless draw its viewport area #19
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!19
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-19"
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-11-30 21:14 UTC · original
TheRifai:vkback-validation-zero→main· +8 −1 · 2 files · 2 commits · merged 2026-11-30 23:39 UTCWhat
Two zero-size calls the console treats as no-ops:
vkCmdPushConstantswith size 0 (VUID-vkCmdPushConstants-size-arraylength). A zero-byte push writes nothing, so the tape skips it.VUID-VkRenderingInfo-None-08994). The render area now starts from the first viewport's extent — the area such a draw rasterizes — instead of zero.The roadmap's "Commands" line loses both entries.
Why this verification is enough (rules 27 and 30)
Validation run on the house scene (about 60 world s,
VK_LAYER_KHRONOS_validation1.4.363, core, thread-safety and shader checks, errors only): both VUIDs are in themainbaseline and neither is after the change, with no new VUID.cargo test -p vkback --lib: 146 passed, 3 ignored.cargo test -p vkback --test policy: 6 passed.5f974e9959tof9af77923bf9af77923bto1a4de5cc601a4de5cc60tof5d18147d6f5d18147d6to37a6ccfcba@vktory6 on GitHub · 2026-11-30 23:40 UTC · original
Merged, thanks. One change on top: a draw without a render target now gets the device's largest framebuffer as its render area instead of the first viewport's size. D3D11.3 functional spec 3.5.6.4 says that with UAV-only rendering "the viewport/scissor identify the pixel dimensions", so the render area must not clip anything, which is what vkd3d-proton does too (maxFramebufferWidth/Height); the viewport's size alone ignores its offset. This fix is a big visual improvement in play: those draws rendered nothing before.
@TheRifai on GitHub · 2026-12-01 00:10 UTC · original
Rebased onto
f85217a(37a6ccf) and revalidated: 15 -> 13 distinct VUIDs on the house scene,VkRenderingInfo-None-08994andvkCmdPushConstants-size-arraylengthgone, no new VUID.@vktory6 on GitHub · 2026-12-01 00:14 UTC · original · edited 2026-12-01 00:20 UTC
Thanks for checking it again! Beyond the validation errors, this was a big visible improvement: draws without a render target used to render nothing, and with your change the picture got significantly better in play. It also fixed the empty character tab in the pause menu for us (issue #32).
github-bot referenced this pull request2026-12-01 20:14:35 +00:00