From 0fdedcc5156a7b257ddb1500b249b73242ed3dae Mon Sep 17 00:00:00 2001 From: Egor Date: Sun, 18 Feb 2018 16:03:20 -0800 Subject: Added Qualcomm GPU vendor --- Graphics/GraphicsEngineOpenGL/include/RenderDeviceGLImpl.h | 8 +++----- Graphics/GraphicsEngineOpenGL/src/RenderDeviceGLImpl.cpp | 3 +++ 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'Graphics/GraphicsEngineOpenGL') diff --git a/Graphics/GraphicsEngineOpenGL/include/RenderDeviceGLImpl.h b/Graphics/GraphicsEngineOpenGL/include/RenderDeviceGLImpl.h index 1caa3b89..c80ef1a4 100644 --- a/Graphics/GraphicsEngineOpenGL/include/RenderDeviceGLImpl.h +++ b/Graphics/GraphicsEngineOpenGL/include/RenderDeviceGLImpl.h @@ -36,15 +36,13 @@ enum class GPU_VENDOR UNKNOWN, INTEL, ATI, - NVIDIA + NVIDIA, + QUALCOMM }; struct GPUInfo { - GPU_VENDOR Vendor; - GPUInfo() : - Vendor( GPU_VENDOR::UNKNOWN ) - {} + GPU_VENDOR Vendor = GPU_VENDOR::UNKNOWN; }; namespace Diligent diff --git a/Graphics/GraphicsEngineOpenGL/src/RenderDeviceGLImpl.cpp b/Graphics/GraphicsEngineOpenGL/src/RenderDeviceGLImpl.cpp index 4676bb4a..51dd552f 100644 --- a/Graphics/GraphicsEngineOpenGL/src/RenderDeviceGLImpl.cpp +++ b/Graphics/GraphicsEngineOpenGL/src/RenderDeviceGLImpl.cpp @@ -68,6 +68,7 @@ RenderDeviceGLImpl :: RenderDeviceGLImpl(IReferenceCounters *pRefCounters, IMemo std::basic_string glstrVendor = glGetString( GL_VENDOR ); std::string Vendor = StrToLower(std::string(glstrVendor.begin(), glstrVendor.end())); + LOG_INFO_MESSAGE("GPU Vendor: ", Vendor); if( Vendor.find( "intel" ) != std::string::npos ) m_GPUInfo.Vendor = GPU_VENDOR::INTEL; @@ -76,6 +77,8 @@ RenderDeviceGLImpl :: RenderDeviceGLImpl(IReferenceCounters *pRefCounters, IMemo else if( Vendor.find( "ati" ) != std::string::npos || Vendor.find( "amd" ) != std::string::npos ) m_GPUInfo.Vendor = GPU_VENDOR::ATI; + else if( Vendor.find( "qualcomm" ) ) + m_GPUInfo.Vendor = GPU_VENDOR::QUALCOMM; } RenderDeviceGLImpl :: ~RenderDeviceGLImpl() -- cgit v1.2.3