1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-03-14 04:29:15 +01:00

[d3d11] Fix image tiling

Fixes bug introduced in d3e89b20dda226dc142aae1b83cc9c90e09f1a5e, which
applies linear tiling to the wrong kind of images.
This commit is contained in:
Philip Rebohle 2018-03-11 00:06:44 +01:00
parent d3e89b20dd
commit 5b9e4c1faa
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -143,13 +143,13 @@ namespace dxvk {
if (CPUAccessFlags != 0) {
pImageInfo->stages |= VK_PIPELINE_STAGE_HOST_BIT;
if (CPUAccessFlags & D3D11_CPU_ACCESS_WRITE) {
if (CPUAccessFlags & D3D11_CPU_ACCESS_WRITE)
pImageInfo->access |= VK_ACCESS_HOST_WRITE_BIT;
if (CPUAccessFlags & D3D11_CPU_ACCESS_READ) {
pImageInfo->access |= VK_ACCESS_HOST_READ_BIT;
pImageInfo->tiling = VK_IMAGE_TILING_LINEAR;
}
if (CPUAccessFlags & D3D11_CPU_ACCESS_READ)
pImageInfo->access |= VK_ACCESS_HOST_READ_BIT;
}
if (MiscFlags & D3D11_RESOURCE_MISC_TEXTURECUBE)