Lines Matching refs:info
17 const struct drm_format_info *info = NULL; in igt_check_drm_format_block_width() local
20 FAIL_ON(drm_format_info_block_width(info, 0) != 0); in igt_check_drm_format_block_width()
21 FAIL_ON(drm_format_info_block_width(info, -1) != 0); in igt_check_drm_format_block_width()
22 FAIL_ON(drm_format_info_block_width(info, 1) != 0); in igt_check_drm_format_block_width()
25 info = drm_format_info(DRM_FORMAT_XRGB4444); in igt_check_drm_format_block_width()
26 FAIL_ON(!info); in igt_check_drm_format_block_width()
27 FAIL_ON(drm_format_info_block_width(info, 0) != 1); in igt_check_drm_format_block_width()
28 FAIL_ON(drm_format_info_block_width(info, 1) != 0); in igt_check_drm_format_block_width()
29 FAIL_ON(drm_format_info_block_width(info, -1) != 0); in igt_check_drm_format_block_width()
32 info = drm_format_info(DRM_FORMAT_NV12); in igt_check_drm_format_block_width()
33 FAIL_ON(!info); in igt_check_drm_format_block_width()
34 FAIL_ON(drm_format_info_block_width(info, 0) != 1); in igt_check_drm_format_block_width()
35 FAIL_ON(drm_format_info_block_width(info, 1) != 1); in igt_check_drm_format_block_width()
36 FAIL_ON(drm_format_info_block_width(info, 2) != 0); in igt_check_drm_format_block_width()
37 FAIL_ON(drm_format_info_block_width(info, -1) != 0); in igt_check_drm_format_block_width()
40 info = drm_format_info(DRM_FORMAT_YUV422); in igt_check_drm_format_block_width()
41 FAIL_ON(!info); in igt_check_drm_format_block_width()
42 FAIL_ON(drm_format_info_block_width(info, 0) != 1); in igt_check_drm_format_block_width()
43 FAIL_ON(drm_format_info_block_width(info, 1) != 1); in igt_check_drm_format_block_width()
44 FAIL_ON(drm_format_info_block_width(info, 2) != 1); in igt_check_drm_format_block_width()
45 FAIL_ON(drm_format_info_block_width(info, 3) != 0); in igt_check_drm_format_block_width()
46 FAIL_ON(drm_format_info_block_width(info, -1) != 0); in igt_check_drm_format_block_width()
49 info = drm_format_info(DRM_FORMAT_X0L0); in igt_check_drm_format_block_width()
50 FAIL_ON(!info); in igt_check_drm_format_block_width()
51 FAIL_ON(drm_format_info_block_width(info, 0) != 2); in igt_check_drm_format_block_width()
52 FAIL_ON(drm_format_info_block_width(info, 1) != 0); in igt_check_drm_format_block_width()
53 FAIL_ON(drm_format_info_block_width(info, -1) != 0); in igt_check_drm_format_block_width()
60 const struct drm_format_info *info = NULL; in igt_check_drm_format_block_height() local
63 FAIL_ON(drm_format_info_block_height(info, 0) != 0); in igt_check_drm_format_block_height()
64 FAIL_ON(drm_format_info_block_height(info, -1) != 0); in igt_check_drm_format_block_height()
65 FAIL_ON(drm_format_info_block_height(info, 1) != 0); in igt_check_drm_format_block_height()
68 info = drm_format_info(DRM_FORMAT_XRGB4444); in igt_check_drm_format_block_height()
69 FAIL_ON(!info); in igt_check_drm_format_block_height()
70 FAIL_ON(drm_format_info_block_height(info, 0) != 1); in igt_check_drm_format_block_height()
71 FAIL_ON(drm_format_info_block_height(info, 1) != 0); in igt_check_drm_format_block_height()
72 FAIL_ON(drm_format_info_block_height(info, -1) != 0); in igt_check_drm_format_block_height()
75 info = drm_format_info(DRM_FORMAT_NV12); in igt_check_drm_format_block_height()
76 FAIL_ON(!info); in igt_check_drm_format_block_height()
77 FAIL_ON(drm_format_info_block_height(info, 0) != 1); in igt_check_drm_format_block_height()
78 FAIL_ON(drm_format_info_block_height(info, 1) != 1); in igt_check_drm_format_block_height()
79 FAIL_ON(drm_format_info_block_height(info, 2) != 0); in igt_check_drm_format_block_height()
80 FAIL_ON(drm_format_info_block_height(info, -1) != 0); in igt_check_drm_format_block_height()
83 info = drm_format_info(DRM_FORMAT_YUV422); in igt_check_drm_format_block_height()
84 FAIL_ON(!info); in igt_check_drm_format_block_height()
85 FAIL_ON(drm_format_info_block_height(info, 0) != 1); in igt_check_drm_format_block_height()
86 FAIL_ON(drm_format_info_block_height(info, 1) != 1); in igt_check_drm_format_block_height()
87 FAIL_ON(drm_format_info_block_height(info, 2) != 1); in igt_check_drm_format_block_height()
88 FAIL_ON(drm_format_info_block_height(info, 3) != 0); in igt_check_drm_format_block_height()
89 FAIL_ON(drm_format_info_block_height(info, -1) != 0); in igt_check_drm_format_block_height()
92 info = drm_format_info(DRM_FORMAT_X0L0); in igt_check_drm_format_block_height()
93 FAIL_ON(!info); in igt_check_drm_format_block_height()
94 FAIL_ON(drm_format_info_block_height(info, 0) != 2); in igt_check_drm_format_block_height()
95 FAIL_ON(drm_format_info_block_height(info, 1) != 0); in igt_check_drm_format_block_height()
96 FAIL_ON(drm_format_info_block_height(info, -1) != 0); in igt_check_drm_format_block_height()
103 const struct drm_format_info *info = NULL; in igt_check_drm_format_min_pitch() local
106 FAIL_ON(drm_format_info_min_pitch(info, 0, 0) != 0); in igt_check_drm_format_min_pitch()
107 FAIL_ON(drm_format_info_min_pitch(info, -1, 0) != 0); in igt_check_drm_format_min_pitch()
108 FAIL_ON(drm_format_info_min_pitch(info, 1, 0) != 0); in igt_check_drm_format_min_pitch()
111 info = drm_format_info(DRM_FORMAT_RGB332); in igt_check_drm_format_min_pitch()
112 FAIL_ON(!info); in igt_check_drm_format_min_pitch()
113 FAIL_ON(drm_format_info_min_pitch(info, 0, 0) != 0); in igt_check_drm_format_min_pitch()
114 FAIL_ON(drm_format_info_min_pitch(info, -1, 0) != 0); in igt_check_drm_format_min_pitch()
115 FAIL_ON(drm_format_info_min_pitch(info, 1, 0) != 0); in igt_check_drm_format_min_pitch()
117 FAIL_ON(drm_format_info_min_pitch(info, 0, 1) != 1); in igt_check_drm_format_min_pitch()
118 FAIL_ON(drm_format_info_min_pitch(info, 0, 2) != 2); in igt_check_drm_format_min_pitch()
119 FAIL_ON(drm_format_info_min_pitch(info, 0, 640) != 640); in igt_check_drm_format_min_pitch()
120 FAIL_ON(drm_format_info_min_pitch(info, 0, 1024) != 1024); in igt_check_drm_format_min_pitch()
121 FAIL_ON(drm_format_info_min_pitch(info, 0, 1920) != 1920); in igt_check_drm_format_min_pitch()
122 FAIL_ON(drm_format_info_min_pitch(info, 0, 4096) != 4096); in igt_check_drm_format_min_pitch()
123 FAIL_ON(drm_format_info_min_pitch(info, 0, 671) != 671); in igt_check_drm_format_min_pitch()
124 FAIL_ON(drm_format_info_min_pitch(info, 0, UINT_MAX) != in igt_check_drm_format_min_pitch()
126 FAIL_ON(drm_format_info_min_pitch(info, 0, (UINT_MAX - 1)) != in igt_check_drm_format_min_pitch()
130 info = drm_format_info(DRM_FORMAT_XRGB4444); in igt_check_drm_format_min_pitch()
131 FAIL_ON(!info); in igt_check_drm_format_min_pitch()
132 FAIL_ON(drm_format_info_min_pitch(info, 0, 0) != 0); in igt_check_drm_format_min_pitch()
133 FAIL_ON(drm_format_info_min_pitch(info, -1, 0) != 0); in igt_check_drm_format_min_pitch()
134 FAIL_ON(drm_format_info_min_pitch(info, 1, 0) != 0); in igt_check_drm_format_min_pitch()
136 FAIL_ON(drm_format_info_min_pitch(info, 0, 1) != 2); in igt_check_drm_format_min_pitch()
137 FAIL_ON(drm_format_info_min_pitch(info, 0, 2) != 4); in igt_check_drm_format_min_pitch()
138 FAIL_ON(drm_format_info_min_pitch(info, 0, 640) != 1280); in igt_check_drm_format_min_pitch()
139 FAIL_ON(drm_format_info_min_pitch(info, 0, 1024) != 2048); in igt_check_drm_format_min_pitch()
140 FAIL_ON(drm_format_info_min_pitch(info, 0, 1920) != 3840); in igt_check_drm_format_min_pitch()
141 FAIL_ON(drm_format_info_min_pitch(info, 0, 4096) != 8192); in igt_check_drm_format_min_pitch()
142 FAIL_ON(drm_format_info_min_pitch(info, 0, 671) != 1342); in igt_check_drm_format_min_pitch()
143 FAIL_ON(drm_format_info_min_pitch(info, 0, UINT_MAX) != in igt_check_drm_format_min_pitch()
145 FAIL_ON(drm_format_info_min_pitch(info, 0, (UINT_MAX - 1)) != in igt_check_drm_format_min_pitch()
149 info = drm_format_info(DRM_FORMAT_RGB888); in igt_check_drm_format_min_pitch()
150 FAIL_ON(!info); in igt_check_drm_format_min_pitch()
151 FAIL_ON(drm_format_info_min_pitch(info, 0, 0) != 0); in igt_check_drm_format_min_pitch()
152 FAIL_ON(drm_format_info_min_pitch(info, -1, 0) != 0); in igt_check_drm_format_min_pitch()
153 FAIL_ON(drm_format_info_min_pitch(info, 1, 0) != 0); in igt_check_drm_format_min_pitch()
155 FAIL_ON(drm_format_info_min_pitch(info, 0, 1) != 3); in igt_check_drm_format_min_pitch()
156 FAIL_ON(drm_format_info_min_pitch(info, 0, 2) != 6); in igt_check_drm_format_min_pitch()
157 FAIL_ON(drm_format_info_min_pitch(info, 0, 640) != 1920); in igt_check_drm_format_min_pitch()
158 FAIL_ON(drm_format_info_min_pitch(info, 0, 1024) != 3072); in igt_check_drm_format_min_pitch()
159 FAIL_ON(drm_format_info_min_pitch(info, 0, 1920) != 5760); in igt_check_drm_format_min_pitch()
160 FAIL_ON(drm_format_info_min_pitch(info, 0, 4096) != 12288); in igt_check_drm_format_min_pitch()
161 FAIL_ON(drm_format_info_min_pitch(info, 0, 671) != 2013); in igt_check_drm_format_min_pitch()
162 FAIL_ON(drm_format_info_min_pitch(info, 0, UINT_MAX) != in igt_check_drm_format_min_pitch()
164 FAIL_ON(drm_format_info_min_pitch(info, 0, UINT_MAX - 1) != in igt_check_drm_format_min_pitch()
168 info = drm_format_info(DRM_FORMAT_ABGR8888); in igt_check_drm_format_min_pitch()
169 FAIL_ON(!info); in igt_check_drm_format_min_pitch()
170 FAIL_ON(drm_format_info_min_pitch(info, 0, 0) != 0); in igt_check_drm_format_min_pitch()
171 FAIL_ON(drm_format_info_min_pitch(info, -1, 0) != 0); in igt_check_drm_format_min_pitch()
172 FAIL_ON(drm_format_info_min_pitch(info, 1, 0) != 0); in igt_check_drm_format_min_pitch()
174 FAIL_ON(drm_format_info_min_pitch(info, 0, 1) != 4); in igt_check_drm_format_min_pitch()
175 FAIL_ON(drm_format_info_min_pitch(info, 0, 2) != 8); in igt_check_drm_format_min_pitch()
176 FAIL_ON(drm_format_info_min_pitch(info, 0, 640) != 2560); in igt_check_drm_format_min_pitch()
177 FAIL_ON(drm_format_info_min_pitch(info, 0, 1024) != 4096); in igt_check_drm_format_min_pitch()
178 FAIL_ON(drm_format_info_min_pitch(info, 0, 1920) != 7680); in igt_check_drm_format_min_pitch()
179 FAIL_ON(drm_format_info_min_pitch(info, 0, 4096) != 16384); in igt_check_drm_format_min_pitch()
180 FAIL_ON(drm_format_info_min_pitch(info, 0, 671) != 2684); in igt_check_drm_format_min_pitch()
181 FAIL_ON(drm_format_info_min_pitch(info, 0, UINT_MAX) != in igt_check_drm_format_min_pitch()
183 FAIL_ON(drm_format_info_min_pitch(info, 0, UINT_MAX - 1) != in igt_check_drm_format_min_pitch()
187 info = drm_format_info(DRM_FORMAT_NV12); in igt_check_drm_format_min_pitch()
188 FAIL_ON(!info); in igt_check_drm_format_min_pitch()
189 FAIL_ON(drm_format_info_min_pitch(info, 0, 0) != 0); in igt_check_drm_format_min_pitch()
190 FAIL_ON(drm_format_info_min_pitch(info, 1, 0) != 0); in igt_check_drm_format_min_pitch()
191 FAIL_ON(drm_format_info_min_pitch(info, -1, 0) != 0); in igt_check_drm_format_min_pitch()
192 FAIL_ON(drm_format_info_min_pitch(info, 2, 0) != 0); in igt_check_drm_format_min_pitch()
194 FAIL_ON(drm_format_info_min_pitch(info, 0, 1) != 1); in igt_check_drm_format_min_pitch()
195 FAIL_ON(drm_format_info_min_pitch(info, 1, 1) != 2); in igt_check_drm_format_min_pitch()
196 FAIL_ON(drm_format_info_min_pitch(info, 0, 2) != 2); in igt_check_drm_format_min_pitch()
197 FAIL_ON(drm_format_info_min_pitch(info, 1, 1) != 2); in igt_check_drm_format_min_pitch()
198 FAIL_ON(drm_format_info_min_pitch(info, 0, 640) != 640); in igt_check_drm_format_min_pitch()
199 FAIL_ON(drm_format_info_min_pitch(info, 1, 320) != 640); in igt_check_drm_format_min_pitch()
200 FAIL_ON(drm_format_info_min_pitch(info, 0, 1024) != 1024); in igt_check_drm_format_min_pitch()
201 FAIL_ON(drm_format_info_min_pitch(info, 1, 512) != 1024); in igt_check_drm_format_min_pitch()
202 FAIL_ON(drm_format_info_min_pitch(info, 0, 1920) != 1920); in igt_check_drm_format_min_pitch()
203 FAIL_ON(drm_format_info_min_pitch(info, 1, 960) != 1920); in igt_check_drm_format_min_pitch()
204 FAIL_ON(drm_format_info_min_pitch(info, 0, 4096) != 4096); in igt_check_drm_format_min_pitch()
205 FAIL_ON(drm_format_info_min_pitch(info, 1, 2048) != 4096); in igt_check_drm_format_min_pitch()
206 FAIL_ON(drm_format_info_min_pitch(info, 0, 671) != 671); in igt_check_drm_format_min_pitch()
207 FAIL_ON(drm_format_info_min_pitch(info, 1, 336) != 672); in igt_check_drm_format_min_pitch()
208 FAIL_ON(drm_format_info_min_pitch(info, 0, UINT_MAX) != in igt_check_drm_format_min_pitch()
210 FAIL_ON(drm_format_info_min_pitch(info, 1, UINT_MAX / 2 + 1) != in igt_check_drm_format_min_pitch()
212 FAIL_ON(drm_format_info_min_pitch(info, 0, (UINT_MAX - 1)) != in igt_check_drm_format_min_pitch()
214 FAIL_ON(drm_format_info_min_pitch(info, 1, (UINT_MAX - 1) / 2) != in igt_check_drm_format_min_pitch()
218 info = drm_format_info(DRM_FORMAT_YUV422); in igt_check_drm_format_min_pitch()
219 FAIL_ON(!info); in igt_check_drm_format_min_pitch()
220 FAIL_ON(drm_format_info_min_pitch(info, 0, 0) != 0); in igt_check_drm_format_min_pitch()
221 FAIL_ON(drm_format_info_min_pitch(info, 1, 0) != 0); in igt_check_drm_format_min_pitch()
222 FAIL_ON(drm_format_info_min_pitch(info, 2, 0) != 0); in igt_check_drm_format_min_pitch()
223 FAIL_ON(drm_format_info_min_pitch(info, -1, 0) != 0); in igt_check_drm_format_min_pitch()
224 FAIL_ON(drm_format_info_min_pitch(info, 3, 0) != 0); in igt_check_drm_format_min_pitch()
226 FAIL_ON(drm_format_info_min_pitch(info, 0, 1) != 1); in igt_check_drm_format_min_pitch()
227 FAIL_ON(drm_format_info_min_pitch(info, 1, 1) != 1); in igt_check_drm_format_min_pitch()
228 FAIL_ON(drm_format_info_min_pitch(info, 2, 1) != 1); in igt_check_drm_format_min_pitch()
229 FAIL_ON(drm_format_info_min_pitch(info, 0, 2) != 2); in igt_check_drm_format_min_pitch()
230 FAIL_ON(drm_format_info_min_pitch(info, 1, 2) != 2); in igt_check_drm_format_min_pitch()
231 FAIL_ON(drm_format_info_min_pitch(info, 2, 2) != 2); in igt_check_drm_format_min_pitch()
232 FAIL_ON(drm_format_info_min_pitch(info, 0, 640) != 640); in igt_check_drm_format_min_pitch()
233 FAIL_ON(drm_format_info_min_pitch(info, 1, 320) != 320); in igt_check_drm_format_min_pitch()
234 FAIL_ON(drm_format_info_min_pitch(info, 2, 320) != 320); in igt_check_drm_format_min_pitch()
235 FAIL_ON(drm_format_info_min_pitch(info, 0, 1024) != 1024); in igt_check_drm_format_min_pitch()
236 FAIL_ON(drm_format_info_min_pitch(info, 1, 512) != 512); in igt_check_drm_format_min_pitch()
237 FAIL_ON(drm_format_info_min_pitch(info, 2, 512) != 512); in igt_check_drm_format_min_pitch()
238 FAIL_ON(drm_format_info_min_pitch(info, 0, 1920) != 1920); in igt_check_drm_format_min_pitch()
239 FAIL_ON(drm_format_info_min_pitch(info, 1, 960) != 960); in igt_check_drm_format_min_pitch()
240 FAIL_ON(drm_format_info_min_pitch(info, 2, 960) != 960); in igt_check_drm_format_min_pitch()
241 FAIL_ON(drm_format_info_min_pitch(info, 0, 4096) != 4096); in igt_check_drm_format_min_pitch()
242 FAIL_ON(drm_format_info_min_pitch(info, 1, 2048) != 2048); in igt_check_drm_format_min_pitch()
243 FAIL_ON(drm_format_info_min_pitch(info, 2, 2048) != 2048); in igt_check_drm_format_min_pitch()
244 FAIL_ON(drm_format_info_min_pitch(info, 0, 671) != 671); in igt_check_drm_format_min_pitch()
245 FAIL_ON(drm_format_info_min_pitch(info, 1, 336) != 336); in igt_check_drm_format_min_pitch()
246 FAIL_ON(drm_format_info_min_pitch(info, 2, 336) != 336); in igt_check_drm_format_min_pitch()
247 FAIL_ON(drm_format_info_min_pitch(info, 0, UINT_MAX) != in igt_check_drm_format_min_pitch()
249 FAIL_ON(drm_format_info_min_pitch(info, 1, UINT_MAX / 2 + 1) != in igt_check_drm_format_min_pitch()
251 FAIL_ON(drm_format_info_min_pitch(info, 2, UINT_MAX / 2 + 1) != in igt_check_drm_format_min_pitch()
253 FAIL_ON(drm_format_info_min_pitch(info, 0, (UINT_MAX - 1) / 2) != in igt_check_drm_format_min_pitch()
255 FAIL_ON(drm_format_info_min_pitch(info, 1, (UINT_MAX - 1) / 2) != in igt_check_drm_format_min_pitch()
257 FAIL_ON(drm_format_info_min_pitch(info, 2, (UINT_MAX - 1) / 2) != in igt_check_drm_format_min_pitch()
261 info = drm_format_info(DRM_FORMAT_X0L2); in igt_check_drm_format_min_pitch()
262 FAIL_ON(!info); in igt_check_drm_format_min_pitch()
263 FAIL_ON(drm_format_info_min_pitch(info, 0, 0) != 0); in igt_check_drm_format_min_pitch()
264 FAIL_ON(drm_format_info_min_pitch(info, -1, 0) != 0); in igt_check_drm_format_min_pitch()
265 FAIL_ON(drm_format_info_min_pitch(info, 1, 0) != 0); in igt_check_drm_format_min_pitch()
267 FAIL_ON(drm_format_info_min_pitch(info, 0, 1) != 2); in igt_check_drm_format_min_pitch()
268 FAIL_ON(drm_format_info_min_pitch(info, 0, 2) != 4); in igt_check_drm_format_min_pitch()
269 FAIL_ON(drm_format_info_min_pitch(info, 0, 640) != 1280); in igt_check_drm_format_min_pitch()
270 FAIL_ON(drm_format_info_min_pitch(info, 0, 1024) != 2048); in igt_check_drm_format_min_pitch()
271 FAIL_ON(drm_format_info_min_pitch(info, 0, 1920) != 3840); in igt_check_drm_format_min_pitch()
272 FAIL_ON(drm_format_info_min_pitch(info, 0, 4096) != 8192); in igt_check_drm_format_min_pitch()
273 FAIL_ON(drm_format_info_min_pitch(info, 0, 671) != 1342); in igt_check_drm_format_min_pitch()
274 FAIL_ON(drm_format_info_min_pitch(info, 0, UINT_MAX) != in igt_check_drm_format_min_pitch()
276 FAIL_ON(drm_format_info_min_pitch(info, 0, UINT_MAX - 1) != in igt_check_drm_format_min_pitch()