Fix DCC clears through aliased image formats

Clear DCC images using the requested view format.
UNORM alpha 0xffff reads as NaN in a FLOAT view.
This commit is contained in:
nmzik
2026-09-15 05:25:30 +04:00
parent 18a1e0fadc
commit ea092a9472
4 changed files with 46 additions and 17 deletions
+2 -2
View File
@@ -151,8 +151,8 @@ private:
void DownloadDepth(Image& image, Buffer& destination, uint64_t destination_offset);
void CommitGpuWrite(Image& image);
// Caller holds m_lock. Volume layer ranges select depth slices.
void ClearImage(CommandBuffer& command, ImageId id, const vk::ImageSubresourceRange& range,
const vk::ClearValue& clear);
void ClearImage(CommandBuffer& command, ImageId id, vk::Format format,
const vk::ImageSubresourceRange& range, const vk::ClearValue& clear);
void PrepareImageCopy(Image& image);
void RefreshCopySource(ImageId id);
[[nodiscard]] bool CopyD16(Image& destination, Image& source);