mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-06 20:58:37 +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
1 changed files with 7 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue