Skip to content
Open
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions source/platforms/sl.chi/compute.h
Original file line number Diff line number Diff line change
Expand Up @@ -529,13 +529,19 @@ enum class VendorId : uint32_t
eNVDA = 0x10DE,
eAMD = 0x1002,
eIntel = 0x8086,
eQualcommACPI = 0x4D4F4351,
eQualcommPCI = 0x0571,
};

inline bool isVendorNvidia(VendorId id)
{
return id == VendorId::eNVDA;
}

inline bool isVendorQualcomm(VendorId id)
{
return (id == VendorId::eQualcommACPI) || (id == VendorId::eQualcommPCI);
}

enum FenceFlags : uint32_t
{
Expand Down
4 changes: 2 additions & 2 deletions source/plugins/sl.common/commonInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ bool getSystemCaps(common::SystemCaps*& info)
DXGI_ADAPTER_DESC desc;
if (SUCCEEDED(adapter->GetDesc(&desc)))
{
// Intel, AMD or NVIDIA physical GPUs only
// Intel, AMD, Qulacomm or NVIDIA physical GPUs only
auto vendor = (chi::VendorId)desc.VendorId;

#ifndef SL_PRODUCTION
Expand All @@ -213,7 +213,7 @@ bool getSystemCaps(common::SystemCaps*& info)
}
#endif

if (isVendorNvidia(vendor) || vendor == chi::VendorId::eIntel || vendor == chi::VendorId::eAMD)
if (isVendorNvidia(vendor) || isVendorQualcomm(vendor) || vendor == chi::VendorId::eIntel || vendor == chi::VendorId::eAMD)
{
info->adapters[info->gpuCount].nativeInterface = adapter;
info->adapters[info->gpuCount].vendor = vendor;
Expand Down