GPUDevice: Don't log warning for WARP driver

This commit is contained in:
Stenzek
2025-10-25 13:52:39 +10:00
parent eb23999d6d
commit b237604ac7
2 changed files with 8 additions and 1 deletions

View File

@@ -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
{

View File

@@ -166,6 +166,7 @@ enum class GPUDriverType : u16
LLVMPipe = SoftwareFlag | 1,
SwiftShader = SoftwareFlag | 2,
WARP = SoftwareFlag | 3,
};
IMPLEMENT_ENUM_CLASS_BITWISE_OPERATORS(GPUDriverType);