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:
parent
1f070ec26c
commit
7d721797fe
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user