PALify driver info. No warnings if info is empty. (#4533)

Signed-off-by: jiaweig <jiaweig@amazon.com>
monroegm-disable-blank-issue-2
jiaweig 4 years ago committed by GitHub
parent cdca77acd1
commit 5f83485a1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -86,6 +86,13 @@ namespace AZ
PhysicalDeviceDriverValidator::ValidationResult PhysicalDeviceDriverValidator::ValidateDriverVersion(const PhysicalDeviceDescriptor& descriptor) const PhysicalDeviceDriverValidator::ValidationResult PhysicalDeviceDriverValidator::ValidateDriverVersion(const PhysicalDeviceDescriptor& descriptor) const
{ {
// [GFX TODO] Add driver info for other platforms besides Windows. Currently, avoid spamming warnings.
// ATOM-14967 [RHI][Metal] - Address driver version validator for Mac
if (m_driverInfo.size() == 0)
{
return ValidationResult::MissingInfo;
}
auto iter = m_driverInfo.find(descriptor.m_vendorId); auto iter = m_driverInfo.find(descriptor.m_vendorId);
if (iter == m_driverInfo.end()) if (iter == m_driverInfo.end())

@ -0,0 +1,23 @@
//
// Copyright (c) Contributors to the Open 3D Engine Project.
// For complete copyright and license terms please see the LICENSE at the root of this distribution.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//
//
//
{
"O3DE":
{
"Atom":
{
"RHI":
{
"PhysicalDeviceDriverInfo":
{
}
}
}
}
}

@ -0,0 +1,23 @@
//
// Copyright (c) Contributors to the Open 3D Engine Project.
// For complete copyright and license terms please see the LICENSE at the root of this distribution.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//
//
//
{
"O3DE":
{
"Atom":
{
"RHI":
{
"PhysicalDeviceDriverInfo":
{
}
}
}
}
}

@ -0,0 +1,23 @@
//
// Copyright (c) Contributors to the Open 3D Engine Project.
// For complete copyright and license terms please see the LICENSE at the root of this distribution.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//
//
//
{
"O3DE":
{
"Atom":
{
"RHI":
{
"PhysicalDeviceDriverInfo":
{
}
}
}
}
}

@ -0,0 +1,23 @@
//
// Copyright (c) Contributors to the Open 3D Engine Project.
// For complete copyright and license terms please see the LICENSE at the root of this distribution.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//
//
//
{
"O3DE":
{
"Atom":
{
"RHI":
{
"PhysicalDeviceDriverInfo":
{
}
}
}
}
}
Loading…
Cancel
Save