vk: fix BC format query and raw storage image view creation on AMD #1052
No reviewers
Labels
No labels
accessibility
autorelease: pending
autorelease: tagged
bug
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
question
testing wanted
wontfix
No milestone
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Hookshot!1052
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/amd-bc-encoder-optimization"
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?
On AMD proprietary Windows drivers (tested on Radeon RX 6600 XT with amdvlk64.dll), kGetPhysicalDeviceImageFormatProperties rejects VK_IMAGE_USAGE_STORAGE_BIT when queried directly on compressed BC formats (BC1..BC7), returning VK_ERROR_FORMAT_NOT_SUPPORTED. Consequently, compressed textures never received STORAGE_BIT, preventing raw block-texel storage image views from being created. When compute encoders attempted to write compressed blocks, the operations failed or dropped, causing texture corruption (e.g. Link's clothes displaying stale blocks or black textures).
Changes
Tested on AMD Radeon RX 6600 XT (Windows 10/11) with Hookshot v2.0.6.