mirror of https://github.com/RPCS3/rpcs3.git
d3d12: clean upload command lists as well
This commit is contained in:
parent
75202ac55b
commit
986a39fcfb
|
@ -103,7 +103,7 @@ size_t D3D12GSRender::UploadTextures()
|
||||||
src.PlacedFootprint.Footprint.Depth = 1;
|
src.PlacedFootprint.Footprint.Depth = 1;
|
||||||
src.PlacedFootprint.Footprint.Width = m_textures[i].GetWidth();
|
src.PlacedFootprint.Footprint.Width = m_textures[i].GetWidth();
|
||||||
src.PlacedFootprint.Footprint.Height = m_textures[i].GetHeight();
|
src.PlacedFootprint.Footprint.Height = m_textures[i].GetHeight();
|
||||||
src.PlacedFootprint.Footprint.RowPitch = rowPitch;
|
src.PlacedFootprint.Footprint.RowPitch = (UINT)rowPitch;
|
||||||
src.PlacedFootprint.Footprint.Format = dxgiFormat;
|
src.PlacedFootprint.Footprint.Format = dxgiFormat;
|
||||||
|
|
||||||
commandList->CopyTextureRegion(&dst, 0, 0, 0, &src, nullptr);
|
commandList->CopyTextureRegion(&dst, 0, 0, 0, &src, nullptr);
|
||||||
|
@ -136,6 +136,7 @@ size_t D3D12GSRender::UploadTextures()
|
||||||
|
|
||||||
commandList->Close();
|
commandList->Close();
|
||||||
m_commandQueueGraphic->ExecuteCommandLists(1, (ID3D12CommandList**)&commandList);
|
m_commandQueueGraphic->ExecuteCommandLists(1, (ID3D12CommandList**)&commandList);
|
||||||
|
getCurrentResourceStorage().m_inflightCommandList.push_back(commandList);
|
||||||
|
|
||||||
usedTexture++;
|
usedTexture++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue