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 "../ActsDeqpgles30017TestSuite.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(ActsDeqpgles30017TestSuite, TestCase_016880,
27         "dEQP-GLES3.functional.shaders.texture_func",
28         "tions.textureoffset.sampler2d_fixed_vertex");
29 
30 static SHRINK_HWTEST_F(ActsDeqpgles30017TestSuite, TestCase_016881,
31         "dEQP-GLES3.functional.shaders.texture_funct",
32         "ions.textureoffset.sampler2d_fixed_fragment");
33 
34 static SHRINK_HWTEST_F(ActsDeqpgles30017TestSuite, TestCase_016882,
35         "dEQP-GLES3.functional.shaders.texture_func",
36         "tions.textureoffset.sampler2d_float_vertex");
37 
38 static SHRINK_HWTEST_F(ActsDeqpgles30017TestSuite, TestCase_016883,
39         "dEQP-GLES3.functional.shaders.texture_funct",
40         "ions.textureoffset.sampler2d_float_fragment");
41 
42 static SHRINK_HWTEST_F(ActsDeqpgles30017TestSuite, TestCase_016884,
43         "dEQP-GLES3.functional.shaders.texture_f",
44         "unctions.textureoffset.isampler2d_vertex");
45 
46 static SHRINK_HWTEST_F(ActsDeqpgles30017TestSuite, TestCase_016885,
47         "dEQP-GLES3.functional.shaders.texture_fu",
48         "nctions.textureoffset.isampler2d_fragment");
49 
50 static SHRINK_HWTEST_F(ActsDeqpgles30017TestSuite, TestCase_016886,
51         "dEQP-GLES3.functional.shaders.texture_f",
52         "unctions.textureoffset.usampler2d_vertex");
53 
54 static SHRINK_HWTEST_F(ActsDeqpgles30017TestSuite, TestCase_016887,
55         "dEQP-GLES3.functional.shaders.texture_fu",
56         "nctions.textureoffset.usampler2d_fragment");
57 
58 static SHRINK_HWTEST_F(ActsDeqpgles30017TestSuite, TestCase_016888,
59         "dEQP-GLES3.functional.shaders.texture_functio",
60         "ns.textureoffset.sampler2d_bias_fixed_fragment");
61 
62 static SHRINK_HWTEST_F(ActsDeqpgles30017TestSuite, TestCase_016889,
63         "dEQP-GLES3.functional.shaders.texture_functio",
64         "ns.textureoffset.sampler2d_bias_float_fragment");
65 
66 static SHRINK_HWTEST_F(ActsDeqpgles30017TestSuite, TestCase_016890,
67         "dEQP-GLES3.functional.shaders.texture_funct",
68         "ions.textureoffset.isampler2d_bias_fragment");
69 
70 static SHRINK_HWTEST_F(ActsDeqpgles30017TestSuite, TestCase_016891,
71         "dEQP-GLES3.functional.shaders.texture_funct",
72         "ions.textureoffset.usampler2d_bias_fragment");
73 
74 static SHRINK_HWTEST_F(ActsDeqpgles30017TestSuite, TestCase_016892,
75         "dEQP-GLES3.functional.shaders.texture_functi",
76         "ons.textureoffset.sampler2darray_fixed_vertex");
77 
78 static SHRINK_HWTEST_F(ActsDeqpgles30017TestSuite, TestCase_016893,
79         "dEQP-GLES3.functional.shaders.texture_functio",
80         "ns.textureoffset.sampler2darray_fixed_fragment");
81 
82 static SHRINK_HWTEST_F(ActsDeqpgles30017TestSuite, TestCase_016894,
83         "dEQP-GLES3.functional.shaders.texture_functi",
84         "ons.textureoffset.sampler2darray_float_vertex");
85 
86 static SHRINK_HWTEST_F(ActsDeqpgles30017TestSuite, TestCase_016895,
87         "dEQP-GLES3.functional.shaders.texture_functio",
88         "ns.textureoffset.sampler2darray_float_fragment");
89 
90 static SHRINK_HWTEST_F(ActsDeqpgles30017TestSuite, TestCase_016896,
91         "dEQP-GLES3.functional.shaders.texture_func",
92         "tions.textureoffset.isampler2darray_vertex");
93 
94 static SHRINK_HWTEST_F(ActsDeqpgles30017TestSuite, TestCase_016897,
95         "dEQP-GLES3.functional.shaders.texture_funct",
96         "ions.textureoffset.isampler2darray_fragment");
97 
98 static SHRINK_HWTEST_F(ActsDeqpgles30017TestSuite, TestCase_016898,
99         "dEQP-GLES3.functional.shaders.texture_func",
100         "tions.textureoffset.usampler2darray_vertex");
101 
102 static SHRINK_HWTEST_F(ActsDeqpgles30017TestSuite, TestCase_016899,
103         "dEQP-GLES3.functional.shaders.texture_funct",
104         "ions.textureoffset.usampler2darray_fragment");
105 
106 static SHRINK_HWTEST_F(ActsDeqpgles30017TestSuite, TestCase_016900,
107         "dEQP-GLES3.functional.shaders.texture_functions.",
108         "textureoffset.sampler2darray_bias_fixed_fragment");
109 
110 static SHRINK_HWTEST_F(ActsDeqpgles30017TestSuite, TestCase_016901,
111         "dEQP-GLES3.functional.shaders.texture_functions.",
112         "textureoffset.sampler2darray_bias_float_fragment");
113 
114 static SHRINK_HWTEST_F(ActsDeqpgles30017TestSuite, TestCase_016902,
115         "dEQP-GLES3.functional.shaders.texture_functio",
116         "ns.textureoffset.isampler2darray_bias_fragment");
117 
118 static SHRINK_HWTEST_F(ActsDeqpgles30017TestSuite, TestCase_016903,
119         "dEQP-GLES3.functional.shaders.texture_functio",
120         "ns.textureoffset.usampler2darray_bias_fragment");
121 
122 static SHRINK_HWTEST_F(ActsDeqpgles30017TestSuite, TestCase_016904,
123         "dEQP-GLES3.functional.shaders.texture_func",
124         "tions.textureoffset.sampler3d_fixed_vertex");
125 
126 static SHRINK_HWTEST_F(ActsDeqpgles30017TestSuite, TestCase_016905,
127         "dEQP-GLES3.functional.shaders.texture_func",
128         "tions.textureoffset.sampler3d_float_vertex");
129 
130 static SHRINK_HWTEST_F(ActsDeqpgles30017TestSuite, TestCase_016906,
131         "dEQP-GLES3.functional.shaders.texture_f",
132         "unctions.textureoffset.usampler3d_vertex");
133 
134 static SHRINK_HWTEST_F(ActsDeqpgles30017TestSuite, TestCase_016907,
135         "dEQP-GLES3.functional.shaders.texture_functio",
136         "ns.textureoffset.sampler3d_bias_fixed_fragment");
137 
138 static SHRINK_HWTEST_F(ActsDeqpgles30017TestSuite, TestCase_016908,
139         "dEQP-GLES3.functional.shaders.texture_functio",
140         "ns.textureoffset.sampler3d_bias_float_fragment");
141 
142 static SHRINK_HWTEST_F(ActsDeqpgles30017TestSuite, TestCase_016909,
143         "dEQP-GLES3.functional.shaders.texture_funct",
144         "ions.textureoffset.isampler3d_bias_fragment");
145 
146 static SHRINK_HWTEST_F(ActsDeqpgles30017TestSuite, TestCase_016910,
147         "dEQP-GLES3.functional.shaders.texture_funct",
148         "ions.textureoffset.usampler3d_bias_fragment");
149 
150 static SHRINK_HWTEST_F(ActsDeqpgles30017TestSuite, TestCase_016911,
151         "dEQP-GLES3.functional.shaders.texture_func",
152         "tions.textureoffset.sampler2dshadow_vertex");
153 
154 static SHRINK_HWTEST_F(ActsDeqpgles30017TestSuite, TestCase_016912,
155         "dEQP-GLES3.functional.shaders.texture_funct",
156         "ions.textureoffset.sampler2dshadow_fragment");
157 
158 static SHRINK_HWTEST_F(ActsDeqpgles30017TestSuite, TestCase_016913,
159         "dEQP-GLES3.functional.shaders.texture_functio",
160         "ns.textureoffset.sampler2dshadow_bias_fragment");
161