From 838dbb6bccf38126f3d3f1702e30d00ee2391dba Mon Sep 17 00:00:00 2001 From: Ken Russell Date: Fri, 25 Jun 2021 14:01:30 -0700 Subject: [PATCH] Add test case for reciprocal sqrt of sum of squares crash. (#3295) This was occurring when the driver's GLSL compiler was identifying an expression as containing the reciprocal square root of a sum of squares. Regression test for https://crbug.com/1079309 and NVIDIA bug 2978301 . --- sdk/tests/conformance2/glsl3/00_test_list.txt | 1 + ...ciprocal-sqrt-of-sum-of-squares-crash.html | 66 +++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 sdk/tests/conformance2/glsl3/reciprocal-sqrt-of-sum-of-squares-crash.html diff --git a/sdk/tests/conformance2/glsl3/00_test_list.txt b/sdk/tests/conformance2/glsl3/00_test_list.txt index bc1fdeaeb3..5a47d470f9 100644 --- a/sdk/tests/conformance2/glsl3/00_test_list.txt +++ b/sdk/tests/conformance2/glsl3/00_test_list.txt @@ -28,6 +28,7 @@ loops-with-side-effects.html misplaced-version-directive.html --min-version 2.0.1 no-attribute-vertex-shader.html --min-version 2.0.1 precision-side-effects-bug.html +--min-version 2.0.1 reciprocal-sqrt-of-sum-of-squares-crash.html sampler-no-precision.html --min-version 2.0.1 sampler-array-indexing.html sequence-operator-returns-non-constant.html diff --git a/sdk/tests/conformance2/glsl3/reciprocal-sqrt-of-sum-of-squares-crash.html b/sdk/tests/conformance2/glsl3/reciprocal-sqrt-of-sum-of-squares-crash.html new file mode 100644 index 0000000000..691523aea0 --- /dev/null +++ b/sdk/tests/conformance2/glsl3/reciprocal-sqrt-of-sum-of-squares-crash.html @@ -0,0 +1,66 @@ + + + + + + +Shader identified as containing reciprocal square root of sum of squares should not crash + + + + + + + +
+
+ + + + +