Skip to content

Fix Atlas::update_image validation panic - #247

Merged
schell merged 1 commit into
mainfrom
fix-atlas-update-image-fails
Oct 10, 2026
Merged

schell merged 1 commit into
mainfrom
fix-atlas-update-image-fails

Conversation

@schell

@schell schell commented Oct 10, 2026 •

Copy link
Copy Markdown
Owner

Atlas::update_image and Atlas::update_texture blit through a render pass whose color attachment is the atlas texture, but Atlas::create_texture never requested RENDER_ATTACHMENT usage, so wgpu rejected the pass with a validation error.

Force RENDER_ATTACHMENT alongside the existing usage flags, and add a regression test that blits new pixels into an existing frame and asserts the readback.

Fixes #246


Assisted by GLM-5.3 for planning, code, and tests per the NLnet generative AI policy. Reviewed by hand.
Transcript: rling- Atlas--update_image fails-2026-10-10.json

@schell
schell force-pushed the fix-atlas-update-image-fails branch from 3d33c37 to 29ff977 Compare October 10, 2026 00:54
@schell
schell merged commit 3071b99 into main Oct 10, 2026
6 of 9 checks passed
@schell
schell deleted the fix-atlas-update-image-fails branch October 10, 2026 01:08
rectalogic added a commit to rectalogic/v3dfx that referenced this pull request Oct 11, 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.

Atlas::update_image fails

1 participant