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_017090,
27         "dEQP-GLES3.functional.shaders.texture_fun",
28         "ctions.texturegrad.sampler2d_fixed_vertex");
29 
30 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017091,
31         "dEQP-GLES3.functional.shaders.texture_func",
32         "tions.texturegrad.sampler2d_fixed_fragment");
33 
34 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017092,
35         "dEQP-GLES3.functional.shaders.texture_fun",
36         "ctions.texturegrad.sampler2d_float_vertex");
37 
38 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017093,
39         "dEQP-GLES3.functional.shaders.texture_func",
40         "tions.texturegrad.sampler2d_float_fragment");
41 
42 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017094,
43         "dEQP-GLES3.functional.shaders.texture_",
44         "functions.texturegrad.isampler2d_vertex");
45 
46 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017095,
47         "dEQP-GLES3.functional.shaders.texture_f",
48         "unctions.texturegrad.isampler2d_fragment");
49 
50 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017096,
51         "dEQP-GLES3.functional.shaders.texture_",
52         "functions.texturegrad.usampler2d_vertex");
53 
54 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017097,
55         "dEQP-GLES3.functional.shaders.texture_f",
56         "unctions.texturegrad.usampler2d_fragment");
57 
58 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017098,
59         "dEQP-GLES3.functional.shaders.texture_func",
60         "tions.texturegrad.samplercube_fixed_vertex");
61 
62 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017099,
63         "dEQP-GLES3.functional.shaders.texture_funct",
64         "ions.texturegrad.samplercube_fixed_fragment");
65 
66 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017100,
67         "dEQP-GLES3.functional.shaders.texture_func",
68         "tions.texturegrad.samplercube_float_vertex");
69 
70 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017101,
71         "dEQP-GLES3.functional.shaders.texture_funct",
72         "ions.texturegrad.samplercube_float_fragment");
73 
74 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017102,
75         "dEQP-GLES3.functional.shaders.texture_f",
76         "unctions.texturegrad.isamplercube_vertex");
77 
78 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017103,
79         "dEQP-GLES3.functional.shaders.texture_f",
80         "unctions.texturegrad.usamplercube_vertex");
81 
82 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017104,
83         "dEQP-GLES3.functional.shaders.texture_fu",
84         "nctions.texturegrad.usamplercube_fragment");
85 
86 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017105,
87         "dEQP-GLES3.functional.shaders.texture_funct",
88         "ions.texturegrad.sampler2darray_fixed_vertex");
89 
90 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017106,
91         "dEQP-GLES3.functional.shaders.texture_functi",
92         "ons.texturegrad.sampler2darray_fixed_fragment");
93 
94 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017107,
95         "dEQP-GLES3.functional.shaders.texture_funct",
96         "ions.texturegrad.sampler2darray_float_vertex");
97 
98 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017108,
99         "dEQP-GLES3.functional.shaders.texture_functi",
100         "ons.texturegrad.sampler2darray_float_fragment");
101 
102 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017109,
103         "dEQP-GLES3.functional.shaders.texture_fun",
104         "ctions.texturegrad.isampler2darray_vertex");
105 
106 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017110,
107         "dEQP-GLES3.functional.shaders.texture_func",
108         "tions.texturegrad.isampler2darray_fragment");
109 
110 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017111,
111         "dEQP-GLES3.functional.shaders.texture_fun",
112         "ctions.texturegrad.usampler2darray_vertex");
113 
114 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017112,
115         "dEQP-GLES3.functional.shaders.texture_func",
116         "tions.texturegrad.usampler2darray_fragment");
117 
118 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017113,
119         "dEQP-GLES3.functional.shaders.texture_fun",
120         "ctions.texturegrad.sampler3d_fixed_vertex");
121 
122 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017114,
123         "dEQP-GLES3.functional.shaders.texture_func",
124         "tions.texturegrad.sampler3d_fixed_fragment");
125 
126 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017115,
127         "dEQP-GLES3.functional.shaders.texture_fun",
128         "ctions.texturegrad.sampler3d_float_vertex");
129 
130 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017116,
131         "dEQP-GLES3.functional.shaders.texture_func",
132         "tions.texturegrad.sampler3d_float_fragment");
133 
134 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017117,
135         "dEQP-GLES3.functional.shaders.texture_",
136         "functions.texturegrad.isampler3d_vertex");
137 
138 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017118,
139         "dEQP-GLES3.functional.shaders.texture_f",
140         "unctions.texturegrad.isampler3d_fragment");
141 
142 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017119,
143         "dEQP-GLES3.functional.shaders.texture_",
144         "functions.texturegrad.usampler3d_vertex");
145 
146 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017120,
147         "dEQP-GLES3.functional.shaders.texture_f",
148         "unctions.texturegrad.usampler3d_fragment");
149 
150 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017121,
151         "dEQP-GLES3.functional.shaders.texture_fun",
152         "ctions.texturegrad.sampler2dshadow_vertex");
153 
154 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017122,
155         "dEQP-GLES3.functional.shaders.texture_func",
156         "tions.texturegrad.sampler2dshadow_fragment");
157 
158 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017123,
159         "dEQP-GLES3.functional.shaders.texture_funct",
160         "ions.texturegrad.sampler2darrayshadow_vertex");
161 
162 static SHRINK_HWTEST_F(ActsDeqpgles30018TestSuite, TestCase_017124,
163         "dEQP-GLES3.functional.shaders.texture_functi",
164         "ons.texturegrad.sampler2darrayshadow_fragment");
165