From 6a6e63060bdcc7588262ba2cf6ed85e89fefee98 Mon Sep 17 00:00:00 2001 From: Triang3l Date: Mon, 8 Oct 2018 19:42:02 +0300 Subject: [PATCH] [D3D12] Submit barriers before uploading gamma ramp --- src/xenia/gpu/d3d12/d3d12_command_processor.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/xenia/gpu/d3d12/d3d12_command_processor.cc b/src/xenia/gpu/d3d12/d3d12_command_processor.cc index 8016701e8..51fc49d7e 100644 --- a/src/xenia/gpu/d3d12/d3d12_command_processor.cc +++ b/src/xenia/gpu/d3d12/d3d12_command_processor.cc @@ -892,6 +892,7 @@ void D3D12CommandProcessor::PerformSwap(uint32_t frontbuffer_ptr, PushTransitionBarrier(gamma_ramp_texture_, gamma_ramp_texture_state_, D3D12_RESOURCE_STATE_COPY_DEST); gamma_ramp_texture_state_ = D3D12_RESOURCE_STATE_COPY_DEST; + SubmitBarriers(); D3D12_TEXTURE_COPY_LOCATION location_source, location_dest; location_source.pResource = gamma_ramp_upload_; location_source.Type = D3D12_TEXTURE_COPY_TYPE_PLACED_FOOTPRINT; @@ -916,6 +917,7 @@ void D3D12CommandProcessor::PerformSwap(uint32_t frontbuffer_ptr, PushTransitionBarrier(gamma_ramp_texture_, gamma_ramp_texture_state_, D3D12_RESOURCE_STATE_COPY_DEST); gamma_ramp_texture_state_ = D3D12_RESOURCE_STATE_COPY_DEST; + SubmitBarriers(); D3D12_TEXTURE_COPY_LOCATION location_source, location_dest; location_source.pResource = gamma_ramp_upload_; location_source.Type = D3D12_TEXTURE_COPY_TYPE_PLACED_FOOTPRINT;