diff --git a/lib/API/DX/Device.cpp b/lib/API/DX/Device.cpp index 4e8fde82..d44f2f15 100644 --- a/lib/API/DX/Device.cpp +++ b/lib/API/DX/Device.cpp @@ -1022,7 +1022,7 @@ class DXDevice : public offloadtest::Device { HR::toError(IS.CmdList->Close(), "Failed to close command list.")) return Err; - ID3D12CommandList *CmdLists[] = {IS.CmdList.Get()}; + ID3D12CommandList *const CmdLists[] = {IS.CmdList.Get()}; IS.Queue->ExecuteCommandLists(1, CmdLists); return waitForSignal(IS); @@ -1213,13 +1213,13 @@ class DXDevice : public offloadtest::Device { static_cast(B.getElementSize() * B.OutputProps.Width); const uint32_t Height = static_cast(B.OutputProps.Height); - uint8_t *SrcBase = reinterpret_cast(Mapped); + const uint8_t *SrcBase = reinterpret_cast(Mapped); uint8_t *DstBase = reinterpret_cast(P.Bindings.RTargetBufferPtr->Data[0].get()); // Copy rows in reverse order. for (uint32_t Y = 0; Y < Height; ++Y) { - uint8_t *SrcRow = SrcBase + static_cast(Y) * RowPitch; + const uint8_t *SrcRow = SrcBase + static_cast(Y) * RowPitch; uint8_t *DstRow = DstBase + static_cast(Height - 1 - Y) * RowBytes; memcpy(DstRow, SrcRow, RowBytes);