1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-29 17:52:18 +01:00

[dxvk] To not attempt to clear compressed image

The current code violates the rules for vkCmdClearImage if
the destination image is compressed.
This commit is contained in:
Philip Rebohle 2018-01-19 01:36:22 +01:00
parent 1f070ec26c
commit 7d721797fe
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -182,6 +182,13 @@ namespace dxvk {
const VkImageSubresourceRange& subresources) {
this->renderPassEnd();
const DxvkFormatInfo* formatInfo = imageFormatInfo(image->info().format);
if (formatInfo->flags.test(DxvkFormatFlag::BlockCompressed)) {
Logger::err("DxvkContext: Compressed clears not supported");
return;
}
if (image->info().layout != VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL) {
m_barriers.accessImage(image, subresources,
VK_IMAGE_LAYOUT_UNDEFINED, 0, 0,