From: Jamie Madill Date: Fri, 26 Jan 2018 17:55:20 +0000 (-0500) Subject: Work around VC++ code-gen bug in shader matrix tests. X-Git-Tag: upstream/1.3.5~2367^2~69^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=71d3798e9b80ab0d85d798f4a6a36df95bf2ec20;p=platform%2Fupstream%2FVK-GL-CTS.git Work around VC++ code-gen bug in shader matrix tests. This code-gen bug was found in crbug.com/759402, and was causing test runtime failures when run. Work around it by disabling optimization for the specific compiler version. Components: AOSP Affects: dEQP-GLES2.functional.shaders.matrix.* dEQP-GLES3.functional.shaders.matrix.* --- diff --git a/modules/gles2/functional/es2fShaderMatrixTests.cpp b/modules/gles2/functional/es2fShaderMatrixTests.cpp index 4b6a8fd..9feb4dc 100644 --- a/modules/gles2/functional/es2fShaderMatrixTests.cpp +++ b/modules/gles2/functional/es2fShaderMatrixTests.cpp @@ -1221,3 +1221,9 @@ void ShaderMatrixTests::init (void) } // Functional } // gles2 } // deqp + +#if defined(_MSC_VER) && _MSC_FULL_VER == 191125507 +// Work around crbug.com/759402 which is a code-gen bug in VC++ 2017, version +// 15.3.2. +#pragma optimize("", off) +#endif diff --git a/modules/gles3/functional/es3fShaderMatrixTests.cpp b/modules/gles3/functional/es3fShaderMatrixTests.cpp index 63bb63b..650d79e 100644 --- a/modules/gles3/functional/es3fShaderMatrixTests.cpp +++ b/modules/gles3/functional/es3fShaderMatrixTests.cpp @@ -1957,3 +1957,9 @@ void ShaderMatrixTests::init (void) } // Functional } // gles3 } // deqp + +#if defined(_MSC_VER) && _MSC_FULL_VER == 191125507 +// Work around crbug.com/759402 which is a code-gen bug in VC++ 2017, version +// 15.3.2. +#pragma optimize("", off) +#endif