Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions lib/API/DX/Device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,8 @@ class DXDevice : public offloadtest::Device {
HR::toError(IS.CmdList->Close(), "Failed to close command list."))
return Err;

ID3D12CommandList *CmdLists[] = {IS.CmdList.Get()};
ID3D12CommandList *CmdLists[] = {
IS.CmdList.Get()}; // NOLINT(misc-const-correctness)
IS.Queue->ExecuteCommandLists(1, CmdLists);

return waitForSignal(IS);
Expand Down Expand Up @@ -1213,13 +1214,13 @@ class DXDevice : public offloadtest::Device {
static_cast<uint32_t>(B.getElementSize() * B.OutputProps.Width);
const uint32_t Height = static_cast<uint32_t>(B.OutputProps.Height);

uint8_t *SrcBase = reinterpret_cast<uint8_t *>(Mapped);
const uint8_t *SrcBase = reinterpret_cast<uint8_t *>(Mapped);
uint8_t *DstBase =
reinterpret_cast<uint8_t *>(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<size_t>(Y) * RowPitch;
const uint8_t *SrcRow = SrcBase + static_cast<size_t>(Y) * RowPitch;
uint8_t *DstRow =
DstBase + static_cast<size_t>(Height - 1 - Y) * RowBytes;
memcpy(DstRow, SrcRow, RowBytes);
Expand Down
Loading