Skip to content

Commit 0fdedcc

Browse files
Added Qualcomm GPU vendor
1 parent 0a1c67d commit 0fdedcc

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Graphics/GraphicsEngineOpenGL/include/RenderDeviceGLImpl.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,13 @@ enum class GPU_VENDOR
3636
UNKNOWN,
3737
INTEL,
3838
ATI,
39-
NVIDIA
39+
NVIDIA,
40+
QUALCOMM
4041
};
4142

4243
struct GPUInfo
4344
{
44-
GPU_VENDOR Vendor;
45-
GPUInfo() :
46-
Vendor( GPU_VENDOR::UNKNOWN )
47-
{}
45+
GPU_VENDOR Vendor = GPU_VENDOR::UNKNOWN;
4846
};
4947

5048
namespace Diligent

Graphics/GraphicsEngineOpenGL/src/RenderDeviceGLImpl.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ RenderDeviceGLImpl :: RenderDeviceGLImpl(IReferenceCounters *pRefCounters, IMemo
6868

6969
std::basic_string<GLubyte> glstrVendor = glGetString( GL_VENDOR );
7070
std::string Vendor = StrToLower(std::string(glstrVendor.begin(), glstrVendor.end()));
71+
LOG_INFO_MESSAGE("GPU Vendor: ", Vendor);
7172

7273
if( Vendor.find( "intel" ) != std::string::npos )
7374
m_GPUInfo.Vendor = GPU_VENDOR::INTEL;
@@ -76,6 +77,8 @@ RenderDeviceGLImpl :: RenderDeviceGLImpl(IReferenceCounters *pRefCounters, IMemo
7677
else if( Vendor.find( "ati" ) != std::string::npos ||
7778
Vendor.find( "amd" ) != std::string::npos )
7879
m_GPUInfo.Vendor = GPU_VENDOR::ATI;
80+
else if( Vendor.find( "qualcomm" ) )
81+
m_GPUInfo.Vendor = GPU_VENDOR::QUALCOMM;
7982
}
8083

8184
RenderDeviceGLImpl :: ~RenderDeviceGLImpl()

0 commit comments

Comments
 (0)