mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-14 04:29:15 +01:00
[d3d11] Disabled image mapping
Effectively reverts d3e89b20dda226dc142aae1b83cc9c90e09f1a5e as it breaks games for some reason.
This commit is contained in:
parent
5b9e4c1faa
commit
bbbc552868
@ -148,7 +148,7 @@ namespace dxvk {
|
||||
|
||||
if (CPUAccessFlags & D3D11_CPU_ACCESS_READ) {
|
||||
pImageInfo->access |= VK_ACCESS_HOST_READ_BIT;
|
||||
pImageInfo->tiling = VK_IMAGE_TILING_LINEAR;
|
||||
// pImageInfo->tiling = VK_IMAGE_TILING_LINEAR;
|
||||
}
|
||||
}
|
||||
|
||||
@ -169,17 +169,19 @@ namespace dxvk {
|
||||
* \returns Image memory properties
|
||||
*/
|
||||
static VkMemoryPropertyFlags GetImageMemoryFlags(UINT CPUAccessFlags) {
|
||||
if (CPUAccessFlags & D3D11_CPU_ACCESS_READ) {
|
||||
return VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT
|
||||
| VK_MEMORY_PROPERTY_HOST_COHERENT_BIT
|
||||
| VK_MEMORY_PROPERTY_HOST_CACHED_BIT;
|
||||
} else {
|
||||
// If only write access is required, we will emulate
|
||||
// image mapping through a buffer. Some games ignore
|
||||
// the row pitch when mapping images, which leads to
|
||||
// incorrect rendering.
|
||||
return VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT;
|
||||
}
|
||||
// FIXME investigate why image mapping breaks games
|
||||
return VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT;
|
||||
// if (CPUAccessFlags & D3D11_CPU_ACCESS_READ) {
|
||||
// return VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT
|
||||
// | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT
|
||||
// | VK_MEMORY_PROPERTY_HOST_CACHED_BIT;
|
||||
// } else {
|
||||
// // If only write access is required, we will emulate
|
||||
// // image mapping through a buffer. Some games ignore
|
||||
// // the row pitch when mapping images, which leads to
|
||||
// // incorrect rendering.
|
||||
// return VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT;
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user