Skip to content
Closed
Changes from all commits
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
5 changes: 3 additions & 2 deletions lib/API/DX/Device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -978,6 +978,7 @@ class DXDevice : public offloadtest::Device {
DSVAllocator(std::move(DSVAllocator)) {
Description = std::move(Desc);
DriverName = "DirectX";
DriverVersion = DriverVer;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
DriverVersion = DriverVer;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, I thought I'd be able to apply this suggestion and then merge this to get the CI going, but apparently I don't have that power. Putting up my own PR #1242 so I can merge this now.

}
DXDevice(const DXDevice &) = delete;
DXDevice &operator=(const DXDevice &) = delete;
Expand Down Expand Up @@ -2372,7 +2373,7 @@ class DXDevice : public offloadtest::Device {
for (const ResourceSet &RS : R.second) {
if (RS.Readback == nullptr)
continue;
DXBuffer &ReadbackDX = llvm::cast<DXBuffer>(*RS.Readback);
const DXBuffer &ReadbackDX = llvm::cast<DXBuffer>(*RS.Readback);
addReadbackBeginBarrier(IS, RS.Buffer);
const CD3DX12_TEXTURE_COPY_LOCATION DstLoc(ReadbackDX.Buffer.Get(),
Footprint);
Expand All @@ -2385,7 +2386,7 @@ class DXDevice : public offloadtest::Device {
for (const ResourceSet &RS : R.second) {
if (RS.Readback == nullptr)
continue;
DXBuffer &ReadbackDX = llvm::cast<DXBuffer>(*RS.Readback);
const DXBuffer &ReadbackDX = llvm::cast<DXBuffer>(*RS.Readback);
addReadbackBeginBarrier(IS, RS.Buffer);
IS.CB->CmdList->CopyResource(ReadbackDX.Buffer.Get(), RS.Buffer.Get());
addReadbackEndBarrier(IS, RS.Buffer);
Expand Down
Loading