Lines Matching refs:options
51 static struct cffdec_options options = {
119 { "dump-shaders", no_argument, &options.dump_shaders, 1 },
120 { "no-color", no_argument, &options.color, 0 },
121 { "color", no_argument, &options.color, 1 },
124 { "textures", no_argument, &options.dump_textures, 1 },
126 { "query-all", no_argument, &options.query_mode, QUERY_ALL },
127 { "query-written", no_argument, &options.query_mode, QUERY_WRITTEN },
128 { "query-delta", no_argument, &options.query_mode, QUERY_DELTA },
129 { "query-compare", no_argument, &options.query_compare, 1 },
130 { "once", no_argument, &options.once, 1 },
131 { "not-once", no_argument, &options.once, 0 },
132 { "unit-test", no_argument, &options.unit_test, 1 },
159 options.color = interactive;
171 options.summary = true;
174 options.allregs = true;
192 options.script = optarg;
193 if (script_load(options.script)) {
194 errx(-1, "error loading %s\n", options.script);
198 options.querystrs =
199 realloc(options.querystrs,
200 (options.nquery + 1) * sizeof(*options.querystrs));
201 options.querystrs[options.nquery] = optarg;
202 options.nquery++;
230 if ((options.query_mode || options.query_compare) && !options.nquery) {
231 fprintf(stderr, "query options only valid in query mode!\n");
264 options.draw_filter = draw;
266 cffdec_init(&options);
268 if (!options.unit_test)
373 options.gpu_id = *((unsigned int *)buf);
374 printl(2, "gpu_id: %d\n", options.gpu_id);
375 cffdec_init(&options);