mirror of
https://github.com/skyline-emu/skyline.git
synced 2025-01-11 02:29:06 +01:00
Allow megabuffering readonly SSBOs
This commit is contained in:
parent
4c2db0ba01
commit
314a9bccbc
@ -639,10 +639,16 @@ namespace skyline::gpu::interconnect::maxwell3d {
|
||||
|
||||
auto view{cachedView.view};
|
||||
ctx.executor.AttachBuffer(view);
|
||||
|
||||
if (desc.is_written) {
|
||||
view.GetBuffer()->MarkGpuDirty();
|
||||
} else {
|
||||
if (auto megaBufferBinding{view.TryMegaBuffer(ctx.executor.cycle, ctx.executor.AcquireMegaBufferAllocator(), ctx.executor.executionNumber)})
|
||||
return megaBufferBinding;
|
||||
}
|
||||
|
||||
view.GetBuffer()->BlockSequencedCpuBackingWrites();
|
||||
|
||||
if (desc.is_written)
|
||||
view.GetBuffer()->MarkGpuDirty();
|
||||
|
||||
return view;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user