mirror of
https://github.com/stenzek/duckstation.git
synced 2026-02-12 17:34:33 +00:00
GPUDevice: Don't log warning for WARP driver
This commit is contained in:
@@ -509,7 +509,13 @@ std::string D3DCommon::GetAdapterName(IDXGIAdapter1* adapter, GPUDriverType* out
|
||||
{
|
||||
ret = StringUtil::WideStringToUTF8String(desc.Description);
|
||||
if (out_driver_type)
|
||||
*out_driver_type = GPUDevice::GuessDriverType(desc.VendorId, {}, ret);
|
||||
{
|
||||
// Handle WARP here.
|
||||
if (desc.VendorId == 0x1414)
|
||||
*out_driver_type = GPUDriverType::WARP;
|
||||
else
|
||||
*out_driver_type = GPUDevice::GuessDriverType(desc.VendorId, {}, ret);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -166,6 +166,7 @@ enum class GPUDriverType : u16
|
||||
|
||||
LLVMPipe = SoftwareFlag | 1,
|
||||
SwiftShader = SoftwareFlag | 2,
|
||||
WARP = SoftwareFlag | 3,
|
||||
};
|
||||
IMPLEMENT_ENUM_CLASS_BITWISE_OPERATORS(GPUDriverType);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user