Skip to content

Commit

Permalink
disable "Microsoft Basic Render Driver"
Browse files Browse the repository at this point in the history
  • Loading branch information
Try committed Mar 24, 2022
1 parent dc504f6 commit 0d30575
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
3 changes: 0 additions & 3 deletions Engine/gapi/directx12/dxallocator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,7 @@ DxAllocator::Provider::DeviceMemory DxAllocator::Provider::alloc(size_t size, ui
}

ID3D12Heap* ret = nullptr;
std::cout << __func__ << " " << device <<" " << __LINE__ << std::endl;
std::cout << __func__ << " " << device->device.get() <<" " << __LINE__ << std::endl;
HRESULT hr = device->device->CreateHeap(&heapDesc, ::uuid<ID3D12Heap>(), reinterpret_cast<void**>(&ret));
std::cout << __func__ << " " << __LINE__ << std::endl;
if(SUCCEEDED(hr))
return ret;
return nullptr;
Expand Down
9 changes: 4 additions & 5 deletions Engine/gapi/directx12api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include "directx12/dxfbolayout.h"

#include <Tempest/Pixmap>
#include <iostream>

using namespace Tempest;
using namespace Tempest::Detail;
Expand Down Expand Up @@ -55,6 +54,8 @@ struct DirectX12Api::Impl {
adapter->GetDesc1(&desc);
if(desc.Flags & DXGI_ADAPTER_FLAG_SOFTWARE)
continue;
if(lstrcmpW(desc.Description,L"Microsoft Basic Render Driver")==0)
continue;

ComPtr<IDXGIAdapter3> adapter3;
adapter->QueryInterface(uuid<IDXGIAdapter3>(), reinterpret_cast<void**>(&adapter3.get()));
Expand Down Expand Up @@ -85,6 +86,8 @@ struct DirectX12Api::Impl {
adapter->GetDesc1(&desc);
if(desc.Flags & DXGI_ADAPTER_FLAG_SOFTWARE)
continue;
if(lstrcmpW(desc.Description,L"Microsoft Basic Render Driver")==0)
continue;

AbstractGraphicsApi::Props props={};
DxDevice::getProp(desc,props);
Expand Down Expand Up @@ -217,14 +220,10 @@ AbstractGraphicsApi::PBuffer DirectX12Api::createBuffer(AbstractGraphicsApi::Dev
return buf;
}

std::cout << __func__ << " " << __LINE__ << std::endl;
DxBuffer base = dx.allocator.alloc(nullptr,count,size,alignedSz,usage,flg);
std::cout << __func__ << " " << __LINE__ << std::endl;
Detail::DSharedPtr<Buffer*> buf(new Detail::DxBuffer(std::move(base)));
std::cout << __func__ << " " << __LINE__ << std::endl;
if(mem!=nullptr)
buf.handler->update(mem,0,count,size,alignedSz);
std::cout << __func__ << " " << __LINE__ << std::endl;
return buf;
}

Expand Down
2 changes: 0 additions & 2 deletions Tests/tests/gapi/gapi_test_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ void Vbo() {

try {
GraphicsApi api{ApiFlags::Validation};
for(auto& i:api.devices())
std::cout << i.name << std::endl;
Device device(api);

auto vbo = device.vbo(vboData,3);
Expand Down

0 comments on commit 0d30575

Please sign in to comment.