1
0
Fork 0
skybolt-linux-docker/patches/skybolt/0004-BrunetonAtmosphereGene...

27 lines
1.2 KiB
Diff

From 173e6088e2aada37e2da44100d705ed46f283f79 Mon Sep 17 00:00:00 2001
From: Peter Ross <pross@xvid.org>
Date: Sun, 20 Dec 2020 20:00:36 +1100
Subject: [PATCH 4/5] BrunetonAtmosphereGeneratorTests: increase margin for
intel gpu
---
.../SkyboltVisTests/BrunetonAtmosphereGeneratorTests.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Skybolt/SkyboltVisTests/BrunetonAtmosphereGeneratorTests.cpp b/src/Skybolt/SkyboltVisTests/BrunetonAtmosphereGeneratorTests.cpp
index 59d706b..b93b7c2 100644
--- a/src/Skybolt/SkyboltVisTests/BrunetonAtmosphereGeneratorTests.cpp
+++ b/src/Skybolt/SkyboltVisTests/BrunetonAtmosphereGeneratorTests.cpp
@@ -148,7 +148,7 @@ TEST_CASE("Precomputed BruentonAtmosphere matches Bruenton's reference implement
{
auto image = callback->capturedImages.at(1);
const float* data = reinterpret_cast<const float*>(image->getDataPointer());
- CHECK(data[100000] == Approx(0.093628).margin(epsilon));
+ CHECK(data[100000] == Approx(0.093628).margin(0.00013));
CHECK(data[200000] == Approx(0.085327).margin(epsilon));
CHECK(data[300000] == Approx(0.190308).margin(epsilon));
CHECK(data[400000] == Approx(0.0).margin(epsilon));
--
2.29.2