From c335f24f75917f63f1087f646d6ab84eba6098e2 Mon Sep 17 00:00:00 2001 From: Paul Thomson Date: Wed, 2 Jan 2019 12:09:53 +0000 Subject: [PATCH] Add const matrix multiply test Test case ported from an ANGLE regression test. New tests: dEQP-GLES3.functional.shaders.constants.const_mat_multiply* Components: AOSP Chromium issue: 912508 Change-Id: I5ecc13af8f8e7a5d5a50126ea609e8ad6fab185b --- android/cts/master/gles3-master.txt | 2 ++ data/gles3/shaders/constants.test | 20 +++++++++++++++++++ .../aosp_mustpass/3.2.5.x/gles3-master.txt | 2 ++ .../aosp_mustpass/master/gles3-master.txt | 2 ++ 4 files changed, 26 insertions(+) diff --git a/android/cts/master/gles3-master.txt b/android/cts/master/gles3-master.txt index 6de1fe2dc6..6ca93b4476 100644 --- a/android/cts/master/gles3-master.txt +++ b/android/cts/master/gles3-master.txt @@ -1411,6 +1411,8 @@ dEQP-GLES3.functional.shaders.constants.const_float_assign_variable_2_vertex dEQP-GLES3.functional.shaders.constants.const_float_assign_variable_2_fragment dEQP-GLES3.functional.shaders.constants.const_float_assign_user_func_vertex dEQP-GLES3.functional.shaders.constants.const_float_assign_user_func_fragment +dEQP-GLES3.functional.shaders.constants.const_mat_multiply_vertex +dEQP-GLES3.functional.shaders.constants.const_mat_multiply_fragment dEQP-GLES3.functional.shaders.constants.int_decimal_vertex dEQP-GLES3.functional.shaders.constants.int_decimal_fragment dEQP-GLES3.functional.shaders.constants.int_octal_vertex diff --git a/data/gles3/shaders/constants.test b/data/gles3/shaders/constants.test index 43a035cdc3..9bf5526ca2 100644 --- a/data/gles3/shaders/constants.test +++ b/data/gles3/shaders/constants.test @@ -773,6 +773,26 @@ case const_float_assign_user_func "" end +case const_mat_multiply + version 300 es + values { output vec2 out0 = vec2(4.0, 4.0); } + both "" + #version 300 es + precision mediump float; + ${DECLARATIONS} + + const mat4x2 matA = mat4x2(2.0, 4.0, 8.0, 16.0, 32.0, 64.0, 128.0, 256.0); + const mat4x2 matB = mat4x2(1.0/2.0, 1.0/4.0, 1.0/8.0, 1.0/16.0, 1.0/32.0, 1.0/64.0, 1.0/128.0, 1.0/256.0); + + void main() + { + mat4x2 result = matrixCompMult(matA, matB); + out0 = result * vec4(1.0, 1.0, 1.0, 1.0); + ${OUTPUT} + } + "" +end + case int_decimal version 300 es values { output int out0 = 7; } diff --git a/external/openglcts/data/mustpass/gles/aosp_mustpass/3.2.5.x/gles3-master.txt b/external/openglcts/data/mustpass/gles/aosp_mustpass/3.2.5.x/gles3-master.txt index 78a5977ff3..3791177af7 100644 --- a/external/openglcts/data/mustpass/gles/aosp_mustpass/3.2.5.x/gles3-master.txt +++ b/external/openglcts/data/mustpass/gles/aosp_mustpass/3.2.5.x/gles3-master.txt @@ -1414,6 +1414,8 @@ dEQP-GLES3.functional.shaders.constants.const_float_assign_variable_2_vertex dEQP-GLES3.functional.shaders.constants.const_float_assign_variable_2_fragment dEQP-GLES3.functional.shaders.constants.const_float_assign_user_func_vertex dEQP-GLES3.functional.shaders.constants.const_float_assign_user_func_fragment +dEQP-GLES3.functional.shaders.constants.const_mat_multiply_vertex +dEQP-GLES3.functional.shaders.constants.const_mat_multiply_fragment dEQP-GLES3.functional.shaders.constants.int_decimal_vertex dEQP-GLES3.functional.shaders.constants.int_decimal_fragment dEQP-GLES3.functional.shaders.constants.int_octal_vertex diff --git a/external/openglcts/data/mustpass/gles/aosp_mustpass/master/gles3-master.txt b/external/openglcts/data/mustpass/gles/aosp_mustpass/master/gles3-master.txt index abc800e1ca..df5b53e972 100644 --- a/external/openglcts/data/mustpass/gles/aosp_mustpass/master/gles3-master.txt +++ b/external/openglcts/data/mustpass/gles/aosp_mustpass/master/gles3-master.txt @@ -1416,6 +1416,8 @@ dEQP-GLES3.functional.shaders.constants.const_float_assign_variable_2_vertex dEQP-GLES3.functional.shaders.constants.const_float_assign_variable_2_fragment dEQP-GLES3.functional.shaders.constants.const_float_assign_user_func_vertex dEQP-GLES3.functional.shaders.constants.const_float_assign_user_func_fragment +dEQP-GLES3.functional.shaders.constants.const_mat_multiply_vertex +dEQP-GLES3.functional.shaders.constants.const_mat_multiply_fragment dEQP-GLES3.functional.shaders.constants.int_decimal_vertex dEQP-GLES3.functional.shaders.constants.int_decimal_fragment dEQP-GLES3.functional.shaders.constants.int_octal_vertex