Lines Matching defs:variant
218 * Delete a shader variant. Note the caller must unlink the variant from
617 /* The first shader variant takes ownership of NIR, so that there is
762 /* Make sure that the default variant stays the first in the list, and insert
774 * Find/create a vertex program variant.
783 /* Search for existing variant */
794 "Compiling %s shader variant (%s%s%s%s%s%s)",
852 /* Translate to NIR. ATI_fs translates at variant time. */
875 struct st_fp_variant *variant = CALLOC_STRUCT(st_fp_variant);
887 if (!variant)
890 /* Translate ATI_fs to NIR at variant time because that's when we have the
962 variant->bitmap_sampler = ffs(~fp->SamplersUsed) - 1;
963 options.sampler = variant->bitmap_sampler;
976 variant->drawpix_sampler = ffs(~samplers_used) - 1;
977 options.drawpix_sampler = variant->drawpix_sampler;
978 samplers_used |= (1 << variant->drawpix_sampler);
982 variant->pixelmap_sampler = ffs(~samplers_used) - 1;
983 options.pixelmap_sampler = variant->pixelmap_sampler;
1061 variant->base.driver_shader = st_create_nir_shader(st, &state);
1062 variant->key = *key;
1064 return variant;
1077 /* Search for existing variant */
1090 "Compiling fragment shader variant (%s%s%s%s%s%s%s%s%s%s%s%s%s)",
1141 /* destroy this variant */
1253 * Compile one shader variant.
1339 /* Always create the default variant of the program. */