renderer: allow storage aliases for block-compressed images #376

Closed
github-bot wants to merge 1 commit from gh-pr/376/head into gh-pr/376/base
Owner

@⁠Techx3 on GitHub · 2026-08-28 23:14 UTC · original
Techx3:techx3/block-compressed-storage-alias → main · +28 −3 · 2 files · 1 commits · closed without merging

Summary

  • map 8-byte BC blocks to R32G32_UINT and 16-byte BC blocks to R32G32B32A32_UINT for storage-capability checks
  • advertise storage usage only when that size-compatible format exposes storage-image support
  • retain the native BC backing/descriptor format; this change enables compatible uncompressed aliases instead of rewriting sampled descriptors
  • create a real BC3-to-RGBA32_UINT storage view in the regression test

Why

Kyty creates block-compressed images with BLOCK_TEXEL_VIEW_COMPATIBLE and EXTENDED_USAGE. Without eStorage on the backing, a later size-compatible uncompressed storage alias cannot create or bind its view even when the device supports that view format.

This isolates and strengthens the BC-storage part of #266.

Game / PPSA context

  • Scars Above — PPSA08597
  • Demon's Souls — PPSA01342

Validation

  • real Vulkan BC3 4x4 to R32G32B32A32_UINT 1x1 storage view created successfully
  • built: kyty_emulator, shader_recompiler_compute_tests
  • passed: texture_cache_image_overlap
  • passed: shader_recompiler_compute
  • git diff --check
**@⁠Techx3** on GitHub · 2026-08-28 23:14 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/376) `Techx3:techx3/block-compressed-storage-alias` → `main` · +28 −3 · 2 files · 1 commits · closed without merging ## Summary - map 8-byte BC blocks to R32G32_UINT and 16-byte BC blocks to R32G32B32A32_UINT for storage-capability checks - advertise storage usage only when that size-compatible format exposes storage-image support - retain the native BC backing/descriptor format; this change enables compatible uncompressed aliases instead of rewriting sampled descriptors - create a real BC3-to-RGBA32_UINT storage view in the regression test ## Why Kyty creates block-compressed images with BLOCK_TEXEL_VIEW_COMPATIBLE and EXTENDED_USAGE. Without eStorage on the backing, a later size-compatible uncompressed storage alias cannot create or bind its view even when the device supports that view format. This isolates and strengthens the BC-storage part of #266. ## Game / PPSA context - Scars Above — PPSA08597 - Demon's Souls — PPSA01342 ## Validation - real Vulkan BC3 4x4 to R32G32B32A32_UINT 1x1 storage view created successfully - built: kyty_emulator, shader_recompiler_compute_tests - passed: texture_cache_image_overlap - passed: shader_recompiler_compute - git diff --check
Advertise storage usage for block-compressed backings only when the matching 64-bit or 128-bit uncompressed view format supports storage images. Verify that a real BC3 backing can create its R32G32B32A32_UINT storage view.

Co-authored-by: shadowbeat070 <[email protected]>

Co-authored-by: SueryRD <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:18:21 +00:00
github-bot closed this pull request 2026-11-26 09:18:21 +00:00
Author
Owner

@⁠Nmzik on GitHub · 2026-09-18 05:12 UTC · original

credited

**@⁠Nmzik** on GitHub · 2026-09-18 05:12 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/376#issuecomment-5725494709) credited

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.