blob: 63bf120f022f986f7ce1332cd139f317b3cf674d [file] [log] [blame]
kkinnunen3e980c32015-12-23 01:33:00 -08001/*
2 * Copyright 2015 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#include "SkCommonFlagsConfig.h"
9#include "Test.h"
10#include <initializer_list>
11
bsalomon3724e572016-03-30 18:56:19 -070012using sk_gpu_test::GrContextFactory;
13
kkinnunen3e980c32015-12-23 01:33:00 -080014namespace {
15// The code
16// SkCommandLineFlags::StringArray FLAGS_config1 = make_string_array({"a", "b"})
17// can be used to construct string array that one gets with command line flags.
18// For example, the call above is equivalent of
19// DEFINE_string(config1, "a b", "");
20// in cases where the default command line flag value ("a b") is used.
21// make_string_array can be used to construct StringArray strings that have spaces in
22// them.
23SkCommandLineFlags::StringArray make_string_array(std::initializer_list<const char*> strings) {
24 SkTArray<SkString> array;
25 for (auto& s : strings) {
26 array.push_back(SkString(s));
27 }
28 return SkCommandLineFlags::StringArray(array);
29}
30}
31DEF_TEST(ParseConfigs_Gpu, reporter) {
32 // Parses a normal config and returns correct "tag".
33 // Gpu config defaults work.
34 SkCommandLineFlags::StringArray config1 = make_string_array({"gpu"});
35 SkCommandLineConfigArray configs;
36 ParseConfigs(config1, &configs);
37
38 REPORTER_ASSERT(reporter, configs.count() == 1);
39 REPORTER_ASSERT(reporter, configs[0]->getTag().equals("gpu"));
40 REPORTER_ASSERT(reporter, configs[0]->getViaParts().count() == 0);
41#if SK_SUPPORT_GPU
42 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu());
43 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()->getContextType()
bsalomon85b4b532016-04-05 11:06:27 -070044 == GrContextFactory::kNativeGL_ContextType);
kkinnunen3e980c32015-12-23 01:33:00 -080045 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()->getUseNVPR() == false);
46 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()->getUseDIText() == false);
47 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()->getSamples() == 0);
brianosmand93c1202016-03-10 07:49:08 -080048 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()->getColorType() == kN32_SkColorType);
brianosmanb109b8c2016-06-16 13:03:24 -070049 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()->getColorSpace() == nullptr);
kkinnunen3e980c32015-12-23 01:33:00 -080050#endif
51}
52
53DEF_TEST(ParseConfigs_OutParam, reporter) {
54 // Clears the out parameter.
55 SkCommandLineFlags::StringArray config1 = make_string_array({"gpu"});
56 SkCommandLineConfigArray configs;
57 ParseConfigs(config1, &configs);
58 REPORTER_ASSERT(reporter, configs.count() == 1);
59 REPORTER_ASSERT(reporter, configs[0]->getTag().equals("gpu"));
bsalomonb8797bb2016-04-05 08:49:38 -070060
kkinnunen3e980c32015-12-23 01:33:00 -080061 SkCommandLineFlags::StringArray config2 = make_string_array({"8888"});
62 ParseConfigs(config2, &configs);
63 REPORTER_ASSERT(reporter, configs.count() == 1);
64 REPORTER_ASSERT(reporter, configs[0]->getTag().equals("8888"));
bsalomonb8797bb2016-04-05 08:49:38 -070065
66 SkCommandLineFlags::StringArray config3 = make_string_array({"gl"});
67 ParseConfigs(config3, &configs);
68 REPORTER_ASSERT(reporter, configs.count() == 1);
69 REPORTER_ASSERT(reporter, configs[0]->getTag().equals("gl"));
kkinnunen3e980c32015-12-23 01:33:00 -080070}
71
72DEF_TEST(ParseConfigs_DefaultConfigs, reporter) {
73 // Parses all default configs and returns correct "tag".
74
75 SkCommandLineFlags::StringArray config1 = make_string_array({
76 "565", "8888", "debug", "gpu", "gpudebug", "gpudft", "gpunull", "msaa16", "msaa4",
cdaltonc28afdb2016-03-29 20:05:07 -070077 "nonrendering", "null", "nullgpu", "nvpr16", "nvpr4", "nvprdit16", "nvprdit4", "pdf",
halcanary94b87bd2016-04-04 06:12:15 -070078 "skp", "svg", "xps", "angle", "angle-gl", "commandbuffer", "mesa", "hwui",
bsalomondc0fcd42016-04-11 14:21:33 -070079 "gpuf16", "gpusrgb", "gl", "glnvpr4", "glnvprdit4", "glsrgb", "glmsaa4", "vk"
kkinnunen3e980c32015-12-23 01:33:00 -080080 });
81
82 SkCommandLineConfigArray configs;
83 ParseConfigs(config1, &configs);
84
brianosmanb109b8c2016-06-16 13:03:24 -070085 auto srgbColorSpace = SkColorSpace::NewNamed(SkColorSpace::kSRGB_Named);
86
kkinnunen3e980c32015-12-23 01:33:00 -080087 REPORTER_ASSERT(reporter, configs.count() == config1.count());
88 for (int i = 0; i < config1.count(); ++i) {
89 REPORTER_ASSERT(reporter, configs[i]->getTag().equals(config1[i]));
90 REPORTER_ASSERT(reporter, configs[i]->getViaParts().count() == 0);
91 }
92#if SK_SUPPORT_GPU
93 REPORTER_ASSERT(reporter, !configs[0]->asConfigGpu());
94 REPORTER_ASSERT(reporter, !configs[1]->asConfigGpu());
95 REPORTER_ASSERT(reporter, configs[2]->asConfigGpu());
96 REPORTER_ASSERT(reporter, configs[3]->asConfigGpu());
97 REPORTER_ASSERT(reporter, configs[4]->asConfigGpu());
98 REPORTER_ASSERT(reporter, configs[5]->asConfigGpu()->getUseDIText());
99 REPORTER_ASSERT(reporter, configs[6]->asConfigGpu());
100 REPORTER_ASSERT(reporter, configs[7]->asConfigGpu()->getSamples() == 16);
101 REPORTER_ASSERT(reporter, configs[8]->asConfigGpu()->getSamples() == 4);
102 REPORTER_ASSERT(reporter, !configs[9]->asConfigGpu());
103 REPORTER_ASSERT(reporter, !configs[10]->asConfigGpu());
104 REPORTER_ASSERT(reporter, configs[11]->asConfigGpu());
105 REPORTER_ASSERT(reporter, configs[12]->asConfigGpu()->getSamples() == 16);
106 REPORTER_ASSERT(reporter, configs[12]->asConfigGpu()->getUseNVPR());
cdaltonc28afdb2016-03-29 20:05:07 -0700107 REPORTER_ASSERT(reporter, !configs[12]->asConfigGpu()->getUseDIText());
kkinnunen3e980c32015-12-23 01:33:00 -0800108 REPORTER_ASSERT(reporter, configs[13]->asConfigGpu()->getSamples() == 4);
109 REPORTER_ASSERT(reporter, configs[13]->asConfigGpu()->getUseNVPR());
cdaltonc28afdb2016-03-29 20:05:07 -0700110 REPORTER_ASSERT(reporter, !configs[13]->asConfigGpu()->getUseDIText());
111 REPORTER_ASSERT(reporter, configs[14]->asConfigGpu()->getSamples() == 16);
112 REPORTER_ASSERT(reporter, configs[14]->asConfigGpu()->getUseNVPR());
113 REPORTER_ASSERT(reporter, configs[14]->asConfigGpu()->getUseDIText());
114 REPORTER_ASSERT(reporter, configs[15]->asConfigGpu()->getSamples() == 4);
115 REPORTER_ASSERT(reporter, configs[15]->asConfigGpu()->getUseNVPR());
116 REPORTER_ASSERT(reporter, configs[15]->asConfigGpu()->getUseDIText());
kkinnunen3e980c32015-12-23 01:33:00 -0800117 REPORTER_ASSERT(reporter, !configs[16]->asConfigGpu());
118 REPORTER_ASSERT(reporter, !configs[17]->asConfigGpu());
119 REPORTER_ASSERT(reporter, !configs[18]->asConfigGpu());
cdaltonc28afdb2016-03-29 20:05:07 -0700120 REPORTER_ASSERT(reporter, !configs[19]->asConfigGpu());
halcanary3c4521a2016-04-04 12:14:46 -0700121 REPORTER_ASSERT(reporter, !configs[24]->asConfigGpu());
brianosmanb109b8c2016-06-16 13:03:24 -0700122 REPORTER_ASSERT(reporter, configs[25]->asConfigGpu()->getColorType() == kRGBA_F16_SkColorType);
123 REPORTER_ASSERT(reporter, configs[25]->asConfigGpu()->getColorSpace() == nullptr);
124 REPORTER_ASSERT(reporter, configs[26]->asConfigGpu()->getColorType() == kN32_SkColorType);
125 REPORTER_ASSERT(reporter, configs[26]->asConfigGpu()->getColorSpace() == srgbColorSpace.get());
126
kkinnunen3e980c32015-12-23 01:33:00 -0800127#if SK_ANGLE
128#ifdef SK_BUILD_FOR_WIN
halcanary3c4521a2016-04-04 12:14:46 -0700129 REPORTER_ASSERT(reporter, configs[20]->asConfigGpu());
130#else
131 REPORTER_ASSERT(reporter, !configs[20]->asConfigGpu());
132#endif
kkinnunen3e980c32015-12-23 01:33:00 -0800133 REPORTER_ASSERT(reporter, configs[21]->asConfigGpu());
134#else
halcanary3c4521a2016-04-04 12:14:46 -0700135 REPORTER_ASSERT(reporter, !configs[20]->asConfigGpu());
kkinnunen3e980c32015-12-23 01:33:00 -0800136 REPORTER_ASSERT(reporter, !configs[21]->asConfigGpu());
137#endif
cdaltonc28afdb2016-03-29 20:05:07 -0700138#if SK_COMMAND_BUFFER
halcanary3c4521a2016-04-04 12:14:46 -0700139 REPORTER_ASSERT(reporter, configs[22]->asConfigGpu());
140#else
141 REPORTER_ASSERT(reporter, !configs[22]->asConfigGpu());
142#endif
143#if SK_MESA
cdaltonc28afdb2016-03-29 20:05:07 -0700144 REPORTER_ASSERT(reporter, configs[23]->asConfigGpu());
145#else
146 REPORTER_ASSERT(reporter, !configs[23]->asConfigGpu());
147#endif
bsalomonb8797bb2016-04-05 08:49:38 -0700148 REPORTER_ASSERT(reporter, configs[27]->asConfigGpu());
149 REPORTER_ASSERT(reporter, configs[28]->asConfigGpu());
150 REPORTER_ASSERT(reporter, configs[28]->asConfigGpu()->getSamples() == 4);
151 REPORTER_ASSERT(reporter, configs[28]->asConfigGpu()->getUseNVPR());
152 REPORTER_ASSERT(reporter, configs[29]->asConfigGpu());
153 REPORTER_ASSERT(reporter, configs[29]->asConfigGpu()->getSamples() == 4);
154 REPORTER_ASSERT(reporter, configs[29]->asConfigGpu()->getUseNVPR());
155 REPORTER_ASSERT(reporter, configs[29]->asConfigGpu()->getUseDIText());
156 REPORTER_ASSERT(reporter, configs[30]->asConfigGpu());
157 REPORTER_ASSERT(reporter, configs[30]->asConfigGpu()->getColorType() == kN32_SkColorType);
brianosmanb109b8c2016-06-16 13:03:24 -0700158 REPORTER_ASSERT(reporter, configs[30]->asConfigGpu()->getColorSpace() == srgbColorSpace.get());
bsalomonb8797bb2016-04-05 08:49:38 -0700159 REPORTER_ASSERT(reporter, configs[31]->asConfigGpu());
160 REPORTER_ASSERT(reporter, configs[31]->asConfigGpu()->getSamples() == 4);
bsalomondc0fcd42016-04-11 14:21:33 -0700161#ifdef SK_VULKAN
162 REPORTER_ASSERT(reporter, configs[32]->asConfigGpu());
163#endif
kkinnunen3e980c32015-12-23 01:33:00 -0800164#endif
165}
166
167DEF_TEST(ParseConfigs_ExtendedGpuConfigsCorrect, reporter) {
168 SkCommandLineFlags::StringArray config1 = make_string_array({
kkinnunene3c2f802015-12-29 08:57:32 -0800169 "gpu(nvpr=true,dit=false)",
kkinnunen3e980c32015-12-23 01:33:00 -0800170 "gpu(api=angle)",
171 "gpu(api=angle-gl)",
172 "gpu(api=mesa,samples=77)",
173 "gpu(dit=true,api=commandbuffer)",
174 "gpu()",
bsalomonb8797bb2016-04-05 08:49:38 -0700175 "gpu(api=gles)",
bsalomondc0fcd42016-04-11 14:21:33 -0700176 "gpu(api=gl)",
177 "gpu(api=vulkan)",
kkinnunen3e980c32015-12-23 01:33:00 -0800178 });
179
180 SkCommandLineConfigArray configs;
181 ParseConfigs(config1, &configs);
182 REPORTER_ASSERT(reporter, configs.count() == config1.count());
183 for (int i = 0; i < config1.count(); ++i) {
184 REPORTER_ASSERT(reporter, configs[i]->getTag().equals(config1[i]));
185 }
186#if SK_SUPPORT_GPU
187 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()->getContextType() ==
bsalomon85b4b532016-04-05 11:06:27 -0700188 GrContextFactory::kNativeGL_ContextType);
kkinnunen3e980c32015-12-23 01:33:00 -0800189 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()->getUseNVPR());
kkinnunene3c2f802015-12-29 08:57:32 -0800190 REPORTER_ASSERT(reporter, !configs[0]->asConfigGpu()->getUseDIText());
kkinnunen3e980c32015-12-23 01:33:00 -0800191 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()->getSamples() == 0);
192#if SK_ANGLE
193#ifdef SK_BUILD_FOR_WIN
194 REPORTER_ASSERT(reporter, configs[1]->asConfigGpu()->getContextType() ==
bsalomon85b4b532016-04-05 11:06:27 -0700195 GrContextFactory::kANGLE_ContextType);
kkinnunen3e980c32015-12-23 01:33:00 -0800196#else
197 REPORTER_ASSERT(reporter, !configs[1]->asConfigGpu());
198#endif
199 REPORTER_ASSERT(reporter, configs[2]->asConfigGpu()->getContextType() ==
bsalomon85b4b532016-04-05 11:06:27 -0700200 GrContextFactory::kANGLE_GL_ContextType);
kkinnunen3e980c32015-12-23 01:33:00 -0800201#else
202 REPORTER_ASSERT(reporter, !configs[1]->asConfigGpu());
203 REPORTER_ASSERT(reporter, !configs[2]->asConfigGpu());
204#endif
205#if SK_MESA
206 REPORTER_ASSERT(reporter, configs[3]->asConfigGpu()->getContextType() ==
bsalomon85b4b532016-04-05 11:06:27 -0700207 GrContextFactory::kMESA_ContextType);
kkinnunen3e980c32015-12-23 01:33:00 -0800208#else
209 REPORTER_ASSERT(reporter, !configs[3]->asConfigGpu());
210#endif
211#if SK_COMMAND_BUFFER
212 REPORTER_ASSERT(reporter, configs[4]->asConfigGpu()->getContextType() ==
bsalomon85b4b532016-04-05 11:06:27 -0700213 GrContextFactory::kCommandBuffer_ContextType);
kkinnunen3e980c32015-12-23 01:33:00 -0800214
215#else
216 REPORTER_ASSERT(reporter, !configs[4]->asConfigGpu());
217#endif
218 REPORTER_ASSERT(reporter, configs[5]->asConfigGpu()->getContextType() ==
bsalomon85b4b532016-04-05 11:06:27 -0700219 GrContextFactory::kNativeGL_ContextType);
kkinnunen3e980c32015-12-23 01:33:00 -0800220 REPORTER_ASSERT(reporter, !configs[5]->asConfigGpu()->getUseNVPR());
221 REPORTER_ASSERT(reporter, !configs[5]->asConfigGpu()->getUseDIText());
222 REPORTER_ASSERT(reporter, configs[5]->asConfigGpu()->getSamples() == 0);
223 REPORTER_ASSERT(reporter, configs[6]->asConfigGpu()->getContextType() ==
bsalomon85b4b532016-04-05 11:06:27 -0700224 GrContextFactory::kGLES_ContextType);
kkinnunen3e980c32015-12-23 01:33:00 -0800225 REPORTER_ASSERT(reporter, !configs[6]->asConfigGpu()->getUseNVPR());
226 REPORTER_ASSERT(reporter, !configs[6]->asConfigGpu()->getUseDIText());
227 REPORTER_ASSERT(reporter, configs[6]->asConfigGpu()->getSamples() == 0);
bsalomonb8797bb2016-04-05 08:49:38 -0700228 REPORTER_ASSERT(reporter, configs[7]->asConfigGpu()->getContextType() ==
bsalomon85b4b532016-04-05 11:06:27 -0700229 GrContextFactory::kGL_ContextType);
bsalomonb8797bb2016-04-05 08:49:38 -0700230 REPORTER_ASSERT(reporter, !configs[7]->asConfigGpu()->getUseNVPR());
231 REPORTER_ASSERT(reporter, !configs[7]->asConfigGpu()->getUseDIText());
232 REPORTER_ASSERT(reporter, configs[7]->asConfigGpu()->getSamples() == 0);
bsalomondc0fcd42016-04-11 14:21:33 -0700233#ifdef SK_VULKAN
234 REPORTER_ASSERT(reporter, configs[8]->asConfigGpu()->getContextType() ==
235 GrContextFactory::kVulkan_ContextType);
236 REPORTER_ASSERT(reporter, !configs[7]->asConfigGpu()->getUseNVPR());
237 REPORTER_ASSERT(reporter, !configs[7]->asConfigGpu()->getUseDIText());
238 REPORTER_ASSERT(reporter, configs[7]->asConfigGpu()->getSamples() == 0);
239#endif
kkinnunen3e980c32015-12-23 01:33:00 -0800240#endif
241}
242
243DEF_TEST(ParseConfigs_ExtendedGpuConfigsIncorrect, reporter) {
244 SkCommandLineFlags::StringArray config1 = make_string_array({
245 "gpu(nvpr=1)", // Number as bool.
246 "gpu(api=gl,)", // Trailing in comma.
247 "gpu(api=angle-glu)", // Unknown api.
248 "gpu(api=,samples=0)", // Empty api.
249 "gpu(samples=true)", // Value true as a number.
250 "gpu(samples=0,samples=0)", // Duplicate option key.
251 "gpu(,samples=0)", // Leading comma.
252 "gpu(samples=54", // Missing closing parenthesis.
253 ",,",
254 "gpu(", // Missing parenthesis.
255 "samples=54" // No backend.
256 "gpu(nvpr=true )", // Space.
257 });
258
259 SkCommandLineConfigArray configs;
260 ParseConfigs(config1, &configs);
261 REPORTER_ASSERT(reporter, configs.count() == config1.count());
262 for (int i = 0; i < config1.count(); ++i) {
263 REPORTER_ASSERT(reporter, configs[i]->getTag().equals(config1[i]));
264 REPORTER_ASSERT(reporter, configs[i]->getBackend().equals(config1[i]));
265#if SK_SUPPORT_GPU
266 REPORTER_ASSERT(reporter, !configs[i]->asConfigGpu());
267#endif
268 }
269}
270
kkinnunen3e980c32015-12-23 01:33:00 -0800271DEF_TEST(ParseConfigs_ExtendedGpuConfigsSurprises, reporter) {
272 // These just list explicitly some properties of the system.
273 SkCommandLineFlags::StringArray config1 = make_string_array({
274 // Options are not canonized -> two same configs have a different tag.
275 "gpu(nvpr=true,dit=true)", "gpu(dit=true,nvpr=true)",
bsalomon85b4b532016-04-05 11:06:27 -0700276 "gpu(api=debug)", "gpu(api=gl)", "gpu(api=gles)", ""
277 "gpu", "gpu()", "gpu(samples=0)", "gpu(api=gles,samples=0)"
kkinnunen3e980c32015-12-23 01:33:00 -0800278 });
279 SkCommandLineConfigArray configs;
280 ParseConfigs(config1, &configs);
281 REPORTER_ASSERT(reporter, configs.count() == config1.count());
282 for (int i = 0; i < config1.count(); ++i) {
283 REPORTER_ASSERT(reporter, configs[i]->getTag().equals(config1[i]));
284#if SK_SUPPORT_GPU
285 REPORTER_ASSERT(reporter, configs[i]->getBackend().equals("gpu"));
286 REPORTER_ASSERT(reporter, configs[i]->asConfigGpu());
287#else
288 REPORTER_ASSERT(reporter, configs[i]->getBackend().equals(config1[i]));
289#endif
290 }
291}
292DEF_TEST(ParseConfigs_ViaParsing, reporter) {
293 SkCommandLineFlags::StringArray config1 = make_string_array({
294 "a-b-c-8888",
295 "zz-qq-gpu",
296 "a-angle-gl"
297 });
298
299 SkCommandLineConfigArray configs;
300 ParseConfigs(config1, &configs);
301 const struct {
302 const char* backend;
303 const char* vias[3];
304 } expectedConfigs[] = {
305 {"8888", {"a", "b", "c"}},
306 {"gpu", {"zz", "qq", nullptr}},
307 {"angle-gl", {"a", nullptr, nullptr}} // The angle-gl tag is only tag that contains
308 // hyphen.
309 };
310 for (int i = 0; i < config1.count(); ++i) {
311 REPORTER_ASSERT(reporter, configs[i]->getTag().equals(config1[i]));
312 REPORTER_ASSERT(reporter, configs[i]->getBackend().equals(expectedConfigs[i].backend));
313 for (int j = 0; j < static_cast<int>(SK_ARRAY_COUNT(expectedConfigs[i].vias)); ++j) {
314 if (!expectedConfigs[i].vias[j]) {
315 REPORTER_ASSERT(reporter, configs[i]->getViaParts().count() == j);
316 break;
317 }
318 REPORTER_ASSERT(reporter,
319 configs[i]->getViaParts()[j].equals(expectedConfigs[i].vias[j]));
320 }
321 }
322}
323
324DEF_TEST(ParseConfigs_ViaParsingExtendedForm, reporter) {
325 SkCommandLineFlags::StringArray config1 = make_string_array({
326 "zz-qq-gpu(api=gles)",
327 "a-gpu(samples=1",
328 "abc-def-angle-gl(samples=1)",
329 });
330
331 SkCommandLineConfigArray configs;
332 ParseConfigs(config1, &configs);
333 const struct {
334 const char* backend;
335 const char* vias[3];
336 } expectedConfigs[] = {
337#if SK_SUPPORT_GPU
338 {"gpu", {"zz", "qq", nullptr}},
339#else
340 {"gpu(api=gles)", {"zz", "qq", nullptr}},
341#endif
342 {"gpu(samples=1", {"a", nullptr, nullptr}}, // This is not extended form, but via still
343 // works as expected.
344 {"gl(samples=1)", {"abc", "def", "angle"}} // This is not extended form. Also
345 // angle-gl is not a "backend" in this case.
346 };
347 for (int i = 0; i < config1.count(); ++i) {
348 REPORTER_ASSERT(reporter, configs[i]->getTag().equals(config1[i]));
349 REPORTER_ASSERT(reporter, configs[i]->getBackend().equals(expectedConfigs[i].backend));
350 for (int j = 0; j < static_cast<int>(SK_ARRAY_COUNT(expectedConfigs[i].vias)); ++j) {
351 if (!expectedConfigs[i].vias[j]) {
352 REPORTER_ASSERT(reporter, configs[i]->getViaParts().count() ==
353 static_cast<int>(j));
354 break;
355 }
356 REPORTER_ASSERT(reporter,
357 configs[i]->getViaParts()[j].equals(expectedConfigs[i].vias[j]));
358 }
359 }
360#if SK_SUPPORT_GPU
361 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu());
362 REPORTER_ASSERT(reporter, !configs[1]->asConfigGpu());
363 REPORTER_ASSERT(reporter, !configs[2]->asConfigGpu());
364#endif
365}