mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-19 05:52:11 +01:00
[d3d9] Use correct aspect mask when blitting depth stencil textures
We don't want to blit stencil when the D3D9 format doesn't have stencil.
This commit is contained in:
parent
ca3aa2014b
commit
d7c2e3ac76
@ -7640,16 +7640,13 @@ namespace dxvk {
|
||||
const D3D9_VK_FORMAT_MAPPING srcFormatInfo = LookupFormat(srcDesc->Format);
|
||||
const D3D9_VK_FORMAT_MAPPING dstFormatInfo = LookupFormat(dstDesc->Format);
|
||||
|
||||
auto srcVulkanFormatInfo = lookupFormatInfo(srcFormatInfo.FormatColor);
|
||||
auto dstVulkanFormatInfo = lookupFormatInfo(dstFormatInfo.FormatColor);
|
||||
|
||||
const VkImageSubresource dstSubresource =
|
||||
dstTextureInfo->GetSubresourceFromIndex(
|
||||
dstVulkanFormatInfo->aspectMask, 0);
|
||||
dstFormatInfo.Aspect, 0);
|
||||
|
||||
const VkImageSubresource srcSubresource =
|
||||
srcTextureInfo->GetSubresourceFromIndex(
|
||||
srcVulkanFormatInfo->aspectMask, src->GetSubresource());
|
||||
srcFormatInfo.Aspect, src->GetSubresource());
|
||||
|
||||
const VkImageSubresourceLayers dstSubresourceLayers = {
|
||||
dstSubresource.aspectMask,
|
||||
|
Loading…
x
Reference in New Issue
Block a user