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:
parent
d3e89b20dd
commit
5b9e4c1faa
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user