mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-20 18:29:23 +00:00
Skip Float16 TextureFormatTests on Swiftshader
Rendering +-INIFNITY with these formats results in a NaN when using Swiftshader. Temporarily disable these tests while the Swiftshader issue if being resolved. Bug: dawn:283 Bug: swiftshader:147 Change-Id: I6e7c91ff72d0b4b6423175f5ab8586fdea42bb53 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/19083 Commit-Queue: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
61e170b3c5
commit
d56b69f115
@@ -488,6 +488,10 @@ bool DawnTestBase::IsQualcomm() const {
|
||||
return gpu_info::IsQualcomm(mAdapterProperties.vendorID);
|
||||
}
|
||||
|
||||
bool DawnTestBase::IsSwiftshader() const {
|
||||
return gpu_info::IsSwiftshader(mAdapterProperties.vendorID, mAdapterProperties.deviceID);
|
||||
}
|
||||
|
||||
bool DawnTestBase::IsWindows() const {
|
||||
#ifdef DAWN_PLATFORM_WINDOWS
|
||||
return true;
|
||||
|
||||
@@ -190,6 +190,7 @@ class DawnTestBase {
|
||||
bool IsIntel() const;
|
||||
bool IsNvidia() const;
|
||||
bool IsQualcomm() const;
|
||||
bool IsSwiftshader() const;
|
||||
|
||||
bool IsWindows() const;
|
||||
bool IsLinux() const;
|
||||
|
||||
@@ -582,16 +582,28 @@ TEST_P(TextureFormatTest, RGBA32Float) {
|
||||
|
||||
// Test the R16Float format
|
||||
TEST_P(TextureFormatTest, R16Float) {
|
||||
// TODO(https://crbug.com/swiftshader/147) Rendering INFINITY isn't handled correctly by
|
||||
// swiftshader
|
||||
DAWN_SKIP_TEST_IF(IsVulkan() && IsSwiftshader());
|
||||
|
||||
DoFloat16Test({wgpu::TextureFormat::R16Float, 2, wgpu::TextureComponentType::Float, 1});
|
||||
}
|
||||
|
||||
// Test the RG16Float format
|
||||
TEST_P(TextureFormatTest, RG16Float) {
|
||||
// TODO(https://crbug.com/swiftshader/147) Rendering INFINITY isn't handled correctly by
|
||||
// swiftshader
|
||||
DAWN_SKIP_TEST_IF(IsVulkan() && IsSwiftshader());
|
||||
|
||||
DoFloat16Test({wgpu::TextureFormat::RG16Float, 4, wgpu::TextureComponentType::Float, 2});
|
||||
}
|
||||
|
||||
// Test the RGBA16Float format
|
||||
TEST_P(TextureFormatTest, RGBA16Float) {
|
||||
// TODO(https://crbug.com/swiftshader/147) Rendering INFINITY isn't handled correctly by
|
||||
// swiftshader
|
||||
DAWN_SKIP_TEST_IF(IsVulkan() && IsSwiftshader());
|
||||
|
||||
DoFloat16Test({wgpu::TextureFormat::RGBA16Float, 8, wgpu::TextureComponentType::Float, 4});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user