Skip to content

Commit

Permalink
[d3d11] Fix image tiling
Browse files Browse the repository at this point in the history
Fixes bug introduced in d3e89b2, which
applies linear tiling to the wrong kind of images.
  • Loading branch information
doitsujin committed Mar 10, 2018
1 parent d3e89b2 commit 5b9e4c1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/d3d11/d3d11_texture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
pImageInfo->tiling = VK_IMAGE_TILING_LINEAR;
}

if (CPUAccessFlags & D3D11_CPU_ACCESS_READ)
if (CPUAccessFlags & D3D11_CPU_ACCESS_READ) {
pImageInfo->access |= VK_ACCESS_HOST_READ_BIT;
pImageInfo->tiling = VK_IMAGE_TILING_LINEAR;
}
}

if (MiscFlags & D3D11_RESOURCE_MISC_TEXTURECUBE)
Expand Down

0 comments on commit 5b9e4c1

Please sign in to comment.