mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-22 12:31:10 +00:00
[vulkan] Use view local dependencies for cube rendering
It doesn't fix the problems on my laptop, but it might improve performance on my 1080 (but I doubt it will make much difference).
This commit is contained in:
parent
f78fcec689
commit
8601e09569
1 changed files with 7 additions and 12 deletions
|
@ -283,7 +283,7 @@
|
|||
dstStageMask = fragment_shader|early_fragment_tests;
|
||||
srcAccessMask = depth_stencil_attachment_write;
|
||||
dstAccessMask = input_attachment_read|depth_stencil_attachment_read;
|
||||
dependencyFlags = by_region;
|
||||
dependencyFlags = by_region|view_local;
|
||||
},
|
||||
{
|
||||
srcSubpass = 0; // depth
|
||||
|
@ -292,7 +292,7 @@
|
|||
dstStageMask = early_fragment_tests;
|
||||
srcAccessMask = depth_stencil_attachment_write;
|
||||
dstAccessMask = depth_stencil_attachment_read;
|
||||
dependencyFlags = by_region;
|
||||
dependencyFlags = by_region|view_local;
|
||||
},
|
||||
{
|
||||
srcSubpass = 2; // g-buffer
|
||||
|
@ -301,7 +301,7 @@
|
|||
dstStageMask = fragment_shader;
|
||||
srcAccessMask = color_attachment_write;
|
||||
dstAccessMask = input_attachment_read;
|
||||
dependencyFlags = by_region;
|
||||
dependencyFlags = by_region|view_local;
|
||||
},
|
||||
{
|
||||
srcSubpass = 3; // lighting
|
||||
|
@ -310,7 +310,7 @@
|
|||
dstStageMask = fragment_shader;
|
||||
srcAccessMask = color_attachment_write;
|
||||
dstAccessMask = input_attachment_read;
|
||||
dependencyFlags = by_region;
|
||||
dependencyFlags = by_region|view_local;
|
||||
},
|
||||
{
|
||||
srcSubpass = 1; // translucent-frags
|
||||
|
@ -319,17 +319,12 @@
|
|||
dstStageMask = fragment_shader;
|
||||
srcAccessMask = color_attachment_write;
|
||||
dstAccessMask = input_attachment_read;
|
||||
dependencyFlags = by_region;
|
||||
dependencyFlags = by_region|view_local;
|
||||
},
|
||||
);
|
||||
@next = (VkRenderPassMultiviewCreateInfo, {
|
||||
viewMasks = (
|
||||
0x0000003fu,
|
||||
0x0000003fu,
|
||||
0x0000003fu,
|
||||
0x0000003fu,
|
||||
0x0000003fu,
|
||||
);
|
||||
viewMasks = (0x3fu, 0x3fu, 0x3fu, 0x3fu, 0x3fu);
|
||||
viewOffsets = ( 0, 0, 0, 0, 0);
|
||||
});
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue