mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-06 20:58:37 +01:00
[dxvk] Use VK_IMAGE_LAYOUT_GENERAL for all render targets
This is a workaround for rendering issues in some games where render targets get seemingly randomly cleared for unknown reasons. Fixes Homefront.
This commit is contained in:
parent
2c20bf4dcb
commit
21e9173415
1 changed files with 6 additions and 2 deletions
|
@ -78,8 +78,10 @@ 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_DEPTH_STENCIL_ATTACHMENT_OPTIMAL;
|
||||
depthRef.layout = VK_IMAGE_LAYOUT_GENERAL;
|
||||
|
||||
attachments.push_back(desc);
|
||||
}
|
||||
|
@ -102,8 +104,10 @@ 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_COLOR_ATTACHMENT_OPTIMAL;
|
||||
colorRef[i].layout = VK_IMAGE_LAYOUT_GENERAL;
|
||||
|
||||
attachments.push_back(desc);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue