1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-02 01:24:11 +01:00

[dxvk] Added correct element size to depth-only and stencil-only formats

Fixes depth-to-color image copies in Elex and Neptunia VII.
This commit is contained in:
Philip Rebohle 2018-05-28 20:33:49 +02:00
parent 8cd97959f2
commit f68bf1a187
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -418,16 +418,16 @@ namespace dxvk {
{ 4, VK_IMAGE_ASPECT_COLOR_BIT },
// VK_FORMAT_D16_UNORM
{ 0, VK_IMAGE_ASPECT_DEPTH_BIT },
{ 2, VK_IMAGE_ASPECT_DEPTH_BIT },
// VK_FORMAT_X8_D24_UNORM_PACK32
{ 0, VK_IMAGE_ASPECT_DEPTH_BIT },
// VK_FORMAT_D32_SFLOAT
{ 0, VK_IMAGE_ASPECT_DEPTH_BIT },
{ 4, VK_IMAGE_ASPECT_DEPTH_BIT },
// VK_FORMAT_S8_UINT
{ 0, VK_IMAGE_ASPECT_STENCIL_BIT },
{ 1, VK_IMAGE_ASPECT_STENCIL_BIT },
// VK_FORMAT_D16_UNORM_S8_UINT
{ 0, VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT },