File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -1912,6 +1912,11 @@ namespace dxvk {
1912
1912
attachmentIndex = -1 ;
1913
1913
}
1914
1914
1915
+ // Completely ignore pure discards here if we can't fold them into the next
1916
+ // render pass, since all we'd do is add an extra barrier for no reason.
1917
+ if (attachmentIndex < 0 && !clearAspects)
1918
+ return ;
1919
+
1915
1920
bool is3D = imageView->image ()->info ().type == VK_IMAGE_TYPE_3D;
1916
1921
1917
1922
if ((clearAspects | discardAspects) == imageView->info ().aspects && !is3D) {
@@ -1995,7 +2000,7 @@ namespace dxvk {
1995
2000
1996
2001
m_cmd->cmdBeginRendering (&renderingInfo);
1997
2002
1998
- if (useLateClear && clearAspects ) {
2003
+ if (useLateClear) {
1999
2004
VkClearAttachment clearInfo = { };
2000
2005
clearInfo.aspectMask = clearAspects;
2001
2006
clearInfo.clearValue = clearValue;
You can’t perform that action at this time.
0 commit comments