Skip to content

vk: fix sparse UBO descriptor updates and cover template relocation - #457

Draft
pablogonz12 wants to merge 3 commits into
mainfrom
lane/fox-ubo-template-1201
Draft

pablogonz12 wants to merge 3 commits into
mainfrom
lane/fox-ubo-template-1201

Conversation

@pablogonz12

@pablogonz12 pablogonz12 commented Dec 1, 2026 •

Copy link
Copy Markdown
Owner

Related to #454 and #389. The existing host regression checks material-shaped 96-byte ring relocations and 64 KiB descriptor encoding (encoding only, not a currently advertised public range).

Production correctness follow-up: mali_dset_write used to stop at an unspecified binding rather than skip its zero descriptor count. This violates Vulkan consecutive binding updates (https://docs.vulkan.org/spec/latest/chapters/descriptorsets.html#descriptorsets-updates-consecutive). Both ordinary writes and strided template updates inherited the defect. Skip zero-count binding numbers using the same traversal rule as descriptor copies.

New synthetic regression uses valid sparse bindings 0, 3 and 5, distinct UBO addresses/ranges, two independently initialized sets and nonzero template offset/padded stride. It checks all slots including untouched neighbors. Before: 12 failures across v10/v11/v13; after: full t_desc passes with 0 failures. Private lint and git diff check pass. Exact follow-up 6e9c3cc. No feature changes, shared interfaces, or phone access. This is host descriptor-byte evidence, not a Fox color fix or actual GPU readback. Exact-head CI/review and independent hardware validation remain pending.

@coderabbitai

coderabbitai Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@pablogonz12

Copy link
Copy Markdown
Owner Author

Final local host gate: 277 passed checks, 0 FAIL entries, terminal OK. Targeted v10/v11/v13 regression and full gate completed. No device-side Fox colour or performance validation claimed.

@pablogonz12 pablogonz12 changed the title tests: cover Fox UBO template relocation and 64 KiB encoding vk: fix sparse UBO descriptor updates and cover template relocation Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant