Lines Matching refs:opt
516 GLuint opt = data->curOption;
524 if (!parseValue (&v, data->cache->info[opt].type, value))
526 if (!checkValue (&v, &data->cache->info[opt]))
554 GLuint opt, i;
565 opt = findOption (cache, attrVal[OA_NAME]);
566 if (cache->info[opt].name)
568 data->curOption = opt;
570 XSTRDUP (cache->info[opt].name, attrVal[OA_NAME]);
573 cache->info[opt].type = DRI_BOOL;
575 cache->info[opt].type = DRI_ENUM;
577 cache->info[opt].type = DRI_INT;
579 cache->info[opt].type = DRI_FLOAT;
583 defaultVal = getenv (cache->info[opt].name);
588 cache->info[opt].name);
591 if (!parseValue (&cache->values[opt], cache->info[opt].type, defaultVal))
592 XML_FATAL ("illegal default value for %s: %s.", cache->info[opt].name, defaultVal);
595 if (cache->info[opt].type == DRI_BOOL)
597 if (!parseRanges (&cache->info[opt], attrVal[OA_VALID]))
599 if (!checkValue (&cache->values[opt], &cache->info[opt]))
602 } else if (cache->info[opt].type == DRI_ENUM) {
605 cache->info[opt].nRanges = 0;
606 cache->info[opt].ranges = NULL;
813 GLuint opt = findOption (cache, name);
814 if (cache->info[opt].name == NULL)
816 else if (getenv (cache->info[opt].name))
819 cache->info[opt].name);
820 else if (!parseValue (&cache->values[opt], cache->info[opt].type, value))