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

Signed-off-by: jiaweig <jiaweig@amazon.com>
This commit is contained in:
jiaweig
2021-10-07 11:00:28 -07:00
committed by GitHub
parent cdca77acd1
commit 5f83485a1d
6 changed files with 99 additions and 0 deletions
@@ -86,6 +86,13 @@ namespace AZ
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);
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":
{
}
}
}
}
}