Skip to content

fix(agc): restrict sampled storage texture view usage - #21

Draft
Thimo188 wants to merge 1 commit into
mainfrom
upstream-pr/862
Draft

Thimo188 wants to merge 1 commit into
mainfrom
upstream-pr/862

Conversation

@Thimo188

@Thimo188 Thimo188 commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Imported from boykopovar/AnyPS5#862, originally opened by lvmino97.

Source commit: bbcaad4b2f0fd8b91dd4430e520c86c1bacb147f. The import branch preserves this fetched upstream PR snapshot. The description and validation below are copied from upstream; no new code changes or test runs were made for this import. Original reviews, discussions, and attachments remain at the linked upstream PR.


What

Sampled sRGB views of storage textures inherit STORAGE usage from the backing image. This triggers VUID-VkImageViewCreateInfo-usage-02275 when the sRGB format does not support storage images.

Set VkImageViewUsageCreateInfo to SAMPLED for these views. Keep the minimum LOD chain and first-layer array views intact.

The recorder test checks both array views, checks that minimum LOD chaining preserves the usage restriction, and samples the selected layer to verify sRGB decoding.

Tested

Windows, Core Ultra 7 265K, RTX 5080, GCC 15.2.0.

  • Clean build of agc_driver_recorder_tests and agc_driver_graphics_tests on main at 5895ea7 with this change.
  • Both tests pass. Removing the three-line fix makes the recorder test fail with the unsupported storage usage error. Restoring it makes the test pass again.
  • git diff --check passes.

Found while testing Astro Bot PPSA21564 v01.007.000 with Vulkan validation. This fixes the view usage error; the separate device-loss failure remains. The full repository test suite was not run.

Checklist

  • Based on current main; no matching open PR found
  • One topic per PR
  • No new code comments
  • No unimplemented paths or silent stubs added
  • No investigation notes, images, or game data in the patch
  • No third-party code added
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes, with OpenAI Codex

@Thimo188 Thimo188 closed this Dec 2, 2026
@Thimo188 Thimo188 reopened this 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.

2 participants