Lines Matching defs:key
226 ((struct st_common_variant*)v)->key.is_draw_shader) {
678 const struct st_common_variant_key *key)
687 v->key = *key;
697 if (key->clamp_color) {
701 if (key->passthrough_edgeflags) {
706 if (key->export_point_size) {
715 if (key->lower_ucp) {
717 lower_ucp(st, state.ir.nir, key->lower_ucp, params);
722 (key->gl_clamp[0] || key->gl_clamp[1] || key->gl_clamp[2])) {
724 tex_opts.saturate_s = key->gl_clamp[0];
725 tex_opts.saturate_t = key->gl_clamp[1];
726 tex_opts.saturate_r = key->gl_clamp[2];
749 if (key->is_draw_shader)
779 const struct st_common_variant_key *key)
786 if (memcmp(&v->key, key, sizeof(*key)) == 0) {
796 key->passthrough_edgeflags ? "edgeflags," : "",
797 key->clamp_color ? "clamp_color," : "",
798 key->export_point_size ? "point_size," : "",
799 key->lower_ucp ? "ucp," : "",
800 key->is_draw_shader ? "draw," : "",
801 key->gl_clamp[0] || key->gl_clamp[1] || key->gl_clamp[2] ? "GL_CLAMP," : "");
805 v = st_create_common_variant(st, prog, key);
807 v->base.st = key->st;
814 (key->passthrough_edgeflags ? VERT_BIT_EDGEFLAG : 0);
873 const struct st_fp_variant_key *key)
897 nir_shader *s = st_translate_atifs_program(fp->ati_fs, key, fp, options);
909 if (key->clamp_color) {
914 if (key->lower_flatshade) {
919 if (key->lower_alpha_func != COMPARE_FUNC_ALWAYS) {
921 NIR_PASS_V(state.ir.nir, nir_lower_alpha_test, key->lower_alpha_func,
926 if (key->lower_two_sided_color) {
932 if (key->persample_shading) {
939 if (key->lower_texcoord_replace) {
942 key->lower_texcoord_replace, point_coord_is_sysval, false);
947 (key->gl_clamp[0] || key->gl_clamp[1] || key->gl_clamp[2])) {
949 tex_opts.saturate_s = key->gl_clamp[0];
950 tex_opts.saturate_t = key->gl_clamp[1];
951 tex_opts.saturate_r = key->gl_clamp[2];
956 assert(!(key->bitmap && key->drawpixels));
959 if (key->bitmap) {
971 if (key->drawpixels) {
980 options.pixel_maps = key->pixelMaps;
981 if (key->pixelMaps) {
986 options.scale_and_bias = key->scaleAndBias;
987 if (key->scaleAndBias) {
1006 if (unlikely(key->external.lower_nv12 || key->external.lower_iyuv ||
1007 key->external.lower_xy_uxvx || key->external.lower_yx_xuxv ||
1008 key->external.lower_ayuv || key->external.lower_xyuv ||
1009 key->external.lower_yuv || key->external.lower_yu_yv ||
1010 key->external.lower_y41x)) {
1016 options.lower_y_uv_external = key->external.lower_nv12;
1017 options.lower_y_u_v_external = key->external.lower_iyuv;
1018 options.lower_xy_uxvx_external = key->external.lower_xy_uxvx;
1019 options.lower_yx_xuxv_external = key->external.lower_yx_xuxv;
1020 options.lower_ayuv_external = key->external.lower_ayuv;
1021 options.lower_xyuv_external = key->external.lower_xyuv;
1022 options.lower_yuv_external = key->external.lower_yuv;
1023 options.lower_yu_yv_external = key->external.lower_yu_yv;
1024 options.lower_y41x_external = key->external.lower_y41x;
1025 options.bt709_external = key->external.bt709;
1026 options.bt2020_external = key->external.bt2020;
1027 options.yuv_full_range_external = key->external.yuv_full_range;
1043 key->external.lower_nv12 | key->external.lower_xy_uxvx |
1044 key->external.lower_yx_xuxv,
1045 key->external.lower_iyuv);
1062 variant->key = *key;
1073 const struct st_fp_variant_key *key)
1080 if (memcmp(&fpv->key, key, sizeof(*key)) == 0) {
1091 key->bitmap ? "bitmap," : "",
1092 key->drawpixels ? "drawpixels," : "",
1093 key->scaleAndBias ? "scale_bias," : "",
1094 key->pixelMaps ? "pixel_maps," : "",
1095 key->clamp_color ? "clamp_color," : "",
1096 key->persample_shading ? "persample_shading," : "",
1097 key->fog ? "fog," : "",
1098 key->lower_two_sided_color ? "twoside," : "",
1099 key->lower_flatshade ? "flatshade," : "",
1100 key->lower_texcoord_replace ? "texcoord_replace," : "",
1101 key->lower_alpha_func ? "alpha_compare," : "",
1104 key->gl_clamp[0] || key->gl_clamp[1] || key->gl_clamp[2] ? "GL_CLAMP," : "");
1107 fpv = st_create_fp_variant(st, fp, key);
1109 fpv->base.st = key->st;
1265 struct st_common_variant_key key;
1267 memset(&key, 0, sizeof(key));
1275 key.clamp_color = true;
1278 key.st = st->has_shareable_shaders ? NULL : st;
1279 st_get_common_variant(st, prog, &key);
1284 struct st_fp_variant_key key;
1286 memset(&key, 0, sizeof(key));
1288 key.st = st->has_shareable_shaders ? NULL : st;
1289 key.lower_alpha_func = COMPARE_FUNC_ALWAYS;
1291 for (int i = 0; i < ARRAY_SIZE(key.texture_index); i++)
1292 key.texture_index[i] = TEXTURE_2D_INDEX;
1294 st_get_fp_variant(st, prog, &key);