Commit f0be7c81 by Shahbaz Youssefi Committed by Commit Bot

Fix GLSLTest_ES3.MixedRowAndColumnMajorMatrices_ReadSideEffect

The test had two array sizes swapped, causing failure on vendors that statically verified index-out-of-bound accesses. Bug: angleproject:3831 Change-Id: I8ec32e9c11b38b69f03b1a22e60dfb6c6e82c2a4 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1947123Reviewed-by: 's avatarJonah Ryan-Davis <jonahr@google.com> Reviewed-by: 's avatarShahbaz Youssefi <syoussefi@chromium.org> Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org>
parent 5e33e647
...@@ -7104,9 +7104,6 @@ void main() ...@@ -7104,9 +7104,6 @@ void main()
// Test that side effects when transforming read operations are preserved. // Test that side effects when transforming read operations are preserved.
TEST_P(GLSLTest_ES3, MixedRowAndColumnMajorMatrices_ReadSideEffect) TEST_P(GLSLTest_ES3, MixedRowAndColumnMajorMatrices_ReadSideEffect)
{ {
// http://anglebug.com/3831
ANGLE_SKIP_TEST_IF(IsNVIDIA() && IsOpenGL());
// Fails on Mac on Intel and AMD: http://anglebug.com/3842 // Fails on Mac on Intel and AMD: http://anglebug.com/3842
ANGLE_SKIP_TEST_IF(IsOSX() && IsOpenGL() && (IsIntel() || IsAMD())); ANGLE_SKIP_TEST_IF(IsOSX() && IsOpenGL() && (IsIntel() || IsAMD()));
...@@ -7119,13 +7116,13 @@ out vec4 outColor; ...@@ -7119,13 +7116,13 @@ out vec4 outColor;
struct S struct S
{ {
mat2x3 m2[2]; mat2x3 m2[3];
}; };
layout(std140, column_major) uniform Ubo layout(std140, column_major) uniform Ubo
{ {
mat4 m1; mat4 m1;
layout(row_major) S s[3]; layout(row_major) S s[2];
} ubo; } ubo;
#define EXPECT(result, expression, value) if ((expression) != value) { result = false; } #define EXPECT(result, expression, value) if ((expression) != value) { result = false; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment