[d3d11] Ignore OMSetRenderTargets calls with incompatible view sizes

Fixes #2701.
This commit is contained in:
Philip Rebohle 2022-07-01 17:21:39 +02:00
parent e37bdcf348
commit 310d70bbf8
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
1 changed files with 7 additions and 0 deletions

View File

@ -4434,6 +4434,13 @@ namespace dxvk {
if (curView->imageInfo().sampleCount
!= refView->imageInfo().sampleCount)
return false;
VkExtent3D curExtent = curView->mipLevelExtent(0);
VkExtent3D refExtent = refView->mipLevelExtent(0);
if (curExtent.width != refExtent.width
|| curExtent.height != refExtent.height)
return false;
} else {
// Set reference view. All remaining views
// must be compatible to the reference view.