mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-31 14: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 srcFormatInfo = LookupFormat(srcDesc->Format);
|
||||||
const D3D9_VK_FORMAT_MAPPING dstFormatInfo = LookupFormat(dstDesc->Format);
|
const D3D9_VK_FORMAT_MAPPING dstFormatInfo = LookupFormat(dstDesc->Format);
|
||||||
|
|
||||||
auto srcVulkanFormatInfo = lookupFormatInfo(srcFormatInfo.FormatColor);
|
|
||||||
auto dstVulkanFormatInfo = lookupFormatInfo(dstFormatInfo.FormatColor);
|
|
||||||
|
|
||||||
const VkImageSubresource dstSubresource =
|
const VkImageSubresource dstSubresource =
|
||||||
dstTextureInfo->GetSubresourceFromIndex(
|
dstTextureInfo->GetSubresourceFromIndex(
|
||||||
dstVulkanFormatInfo->aspectMask, 0);
|
dstFormatInfo.Aspect, 0);
|
||||||
|
|
||||||
const VkImageSubresource srcSubresource =
|
const VkImageSubresource srcSubresource =
|
||||||
srcTextureInfo->GetSubresourceFromIndex(
|
srcTextureInfo->GetSubresourceFromIndex(
|
||||||
srcVulkanFormatInfo->aspectMask, src->GetSubresource());
|
srcFormatInfo.Aspect, src->GetSubresource());
|
||||||
|
|
||||||
const VkImageSubresourceLayers dstSubresourceLayers = {
|
const VkImageSubresourceLayers dstSubresourceLayers = {
|
||||||
dstSubresource.aspectMask,
|
dstSubresource.aspectMask,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user