1 /*
2  * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #include <climits>
17 #include <gtest/gtest.h>
18 #include "../Deqpgles3BaseFunc.h"
19 #include "../ActsDeqpgles30018TestSuite.h"
20 #include "shrinkdefine.h"
21 
22 using namespace std;
23 using namespace testing::ext;
24 using namespace OHOS;
25 
26 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017517,
27         "dEQP-GLES3.functional.shaders.deriva",
28         "te.dfdx.fastest.fbo_float.float_lowp");
29 
30 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017518,
31         "dEQP-GLES3.functional.shaders.derivat",
32         "e.dfdx.fastest.fbo_float.float_mediump");
33 
34 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017519,
35         "dEQP-GLES3.functional.shaders.derivat",
36         "e.dfdx.fastest.fbo_float.vec2_mediump");
37 
38 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017520,
39         "dEQP-GLES3.functional.shaders.deriv",
40         "ate.dfdx.fastest.fbo_float.vec3_lowp");
41 
42 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017521,
43         "dEQP-GLES3.functional.shaders.derivat",
44         "e.dfdx.fastest.fbo_float.vec3_mediump");
45 
46 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017692,
47         "dEQP-GLES3.functional.shaders.deriva",
48         "te.dfdy.fastest.fbo_float.float_lowp");
49 
50 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017693,
51         "dEQP-GLES3.functional.shaders.derivat",
52         "e.dfdy.fastest.fbo_float.float_mediump");
53 
54 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017694,
55         "dEQP-GLES3.functional.shaders.deriv",
56         "ate.dfdy.fastest.fbo_float.vec2_lowp");
57 
58 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017695,
59         "dEQP-GLES3.functional.shaders.derivat",
60         "e.dfdy.fastest.fbo_float.vec2_mediump");
61 
62 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017696,
63         "dEQP-GLES3.functional.shaders.deriv",
64         "ate.dfdy.fastest.fbo_float.vec3_lowp");
65 
66 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017697,
67         "dEQP-GLES3.functional.shaders.derivat",
68         "e.dfdy.fastest.fbo_float.vec3_mediump");
69 
70 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017698,
71         "dEQP-GLES3.functional.shaders.deriv",
72         "ate.dfdy.fastest.fbo_float.vec4_lowp");
73 
74 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017699,
75         "dEQP-GLES3.functional.shaders.derivat",
76         "e.dfdy.fastest.fbo_float.vec4_mediump");
77 
78 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017887,
79         "dEQP-GLES3.functional.shaders.derivat",
80         "e.fwidth.fastest.fbo_float.float_lowp");
81 
82 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017888,
83         "dEQP-GLES3.functional.shaders.derivate",
84         ".fwidth.fastest.fbo_float.float_mediump");
85 
86 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017889,
87         "dEQP-GLES3.functional.shaders.derivat",
88         "e.fwidth.fastest.fbo_float.float_highp");
89 
90 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017890,
91         "dEQP-GLES3.functional.shaders.deriva",
92         "te.fwidth.fastest.fbo_float.vec2_lowp");
93 
94 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017891,
95         "dEQP-GLES3.functional.shaders.derivate",
96         ".fwidth.fastest.fbo_float.vec2_mediump");
97 
98 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017892,
99         "dEQP-GLES3.functional.shaders.derivat",
100         "e.fwidth.fastest.fbo_float.vec2_highp");
101 
102 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017893,
103         "dEQP-GLES3.functional.shaders.deriva",
104         "te.fwidth.fastest.fbo_float.vec3_lowp");
105 
106 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017894,
107         "dEQP-GLES3.functional.shaders.derivate",
108         ".fwidth.fastest.fbo_float.vec3_mediump");
109 
110 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017895,
111         "dEQP-GLES3.functional.shaders.derivat",
112         "e.fwidth.fastest.fbo_float.vec3_highp");
113 
114 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017896,
115         "dEQP-GLES3.functional.shaders.deriva",
116         "te.fwidth.fastest.fbo_float.vec4_lowp");
117 
118 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017897,
119         "dEQP-GLES3.functional.shaders.derivate",
120         ".fwidth.fastest.fbo_float.vec4_mediump");
121 
122 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017898,
123         "dEQP-GLES3.functional.shaders.derivat",
124         "e.fwidth.fastest.fbo_float.vec4_highp");
125