mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-18 20:52:10 +01:00
Revert "[dxvk] Use VK_IMAGE_LAYOUT_GENERAL for all render targets"
Actually this did not fix Homefront entirely and causes severe performance degradation if textures are SHADER_READ_ONLY_OPTIMAL.
This commit is contained in:
parent
feae2988d6
commit
226afa96c9
@ -78,10 +78,8 @@ namespace dxvk {
|
||||
desc.initialLayout = depthFmt.initialLayout;
|
||||
desc.finalLayout = depthFmt.finalLayout;
|
||||
|
||||
// TODO Using GENERAL is a workaround for bugs in either dxvk or
|
||||
// RADV. Revert to VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL.
|
||||
depthRef.attachment = attachments.size();
|
||||
depthRef.layout = VK_IMAGE_LAYOUT_GENERAL;
|
||||
depthRef.layout = VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL;
|
||||
|
||||
attachments.push_back(desc);
|
||||
}
|
||||
@ -104,10 +102,8 @@ namespace dxvk {
|
||||
desc.initialLayout = colorFmt.initialLayout;
|
||||
desc.finalLayout = colorFmt.finalLayout;
|
||||
|
||||
// TODO Using GENERAL is a workaround for bugs in either dxvk
|
||||
// or RADV. Revert to VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL.
|
||||
colorRef[i].attachment = attachments.size();
|
||||
colorRef[i].layout = VK_IMAGE_LAYOUT_GENERAL;
|
||||
colorRef[i].layout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL;
|
||||
|
||||
attachments.push_back(desc);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user