[D3D12] ROV: UAV barrier in Resolve

This commit is contained in:
Triang3l 2018-10-21 14:53:29 +03:00
parent b6006dc4b2
commit 8cfff36ec1
1 changed files with 5 additions and 0 deletions

View File

@ -907,6 +907,11 @@ bool RenderTargetCache::Resolve(SharedMemory* shared_memory,
msaa_samples != MsaaSamples::k1X ? "s" : "", surface_format,
surface_edram_base);
if (command_processor_->IsROVUsedForEDRAM()) {
// Commit ROV writes.
command_processor_->PushUAVBarrier(edram_buffer_);
}
bool result = ResolveCopy(shared_memory, texture_cache, surface_edram_base,
surface_pitch, msaa_samples, surface_is_depth,
surface_format, src_rect);