image: drop optional create flags the driver rejects instead of aborting #1760
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!1760
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1760/head"
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?
@Arda501 on GitHub · 2026-10-20 13:41 UTC · original
Arda501:pr/image-optional-create-flags→main· +28 −6 · 2 files · 2 commits · merged 2026-10-22 01:56 UTCGame and problem
SAROS (PPSA07631, v01.00), Linux (CachyOS), RX 9070 XT, Mesa RADV. On
main1a053f9e, Kyty exits as gameplay starts:Cause
The game creates a 3D BC7 image (format 145,
VK_FORMAT_BC7_UNORM_BLOCK).ImageCreateFlagsasks for2D_ARRAY_COMPATIBLE,BLOCK_TEXEL_VIEW_COMPATIBLEandEXTENDED_USAGE(flags 0x1a8 together withMUTABLE_FORMAT). RADV does not support that combination for a compressed 3D image, sovkGetPhysicalDeviceImageFormatProperties2fails and the image creation exits.Change
When the format query fails, the image is retried with those optional flags dropped one at a time (2D-array-compatible first, then block-texel-view, then extended usage) until the driver accepts it. Views that would need a dropped flag are already refused by
IsValidView. If no combination is accepted, the original error is kept. The first few retries are logged. One file,image.cpp.Testing
main1a053f9e: reaches gameplay and runs; without the change it exits at the error above.AI use
Claude Code found the failing image, wrote the change and ran the game tests above.
🤖 Generated with Claude Code
@coderabbitai[bot] on GitHub · 2026-10-20 13:54 UTC · original
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
5541e5fc-ec81-4ece-b84c-2d3d10390a57📥 Commits
Reviewing files that changed from the base of the PR and between
f492027be2and 09eff8f8d89842d3737a04b253236fef13129fef.📒 Files selected for processing: 1
src/graphics/host_gpu/renderer/image/image.cppIncluded review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 5 remain after this review.
📝 Walkthrough
Image::Imagenow checks image-format support for usage, flags, and sample count. If the requested combination is unsupported, it tries removinge2DArrayCompatible,eBlockTexelViewCompatible, andeExtendedUsagein that order. If no reduced combination is supported, it restores the original flags and fails as before. Successful fallback selections are logged up to 16 times.Suggested reviewers:
nmzikPriority: ⬆️ High
Change: Bug fix
Merge Risk: ⚪ Minimal · up to
09effThe fallback has no established merge-blocking issue. Merge after normal checks.
Pre-merge checks:
5
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
Comment
@coderabbitai helpto get the list of available commands.