Lines Matching refs:tex_usage
854 unsigned tex_usage = 0;
861 tex_usage |= PIPE_BIND_RENDER_TARGET;
864 tex_usage |= PIPE_BIND_SAMPLER_VIEW;
867 if (!tex_usage && map->pipe_format == PIPE_FORMAT_NV12 &&
871 tex_usage |= PIPE_BIND_SAMPLER_VIEW;
877 if (!tex_usage && map->pipe_format == PIPE_FORMAT_YUYV &&
881 tex_usage |= PIPE_BIND_SAMPLER_VIEW;
884 if (!tex_usage && map->pipe_format == PIPE_FORMAT_UYVY &&
888 tex_usage |= PIPE_BIND_SAMPLER_VIEW;
891 if (!tex_usage && util_format_is_yuv(map->pipe_format)) {
894 * If no tex_usage is set and we detect a YUV format,
900 tex_usage |= PIPE_BIND_SAMPLER_VIEW;
903 if (!tex_usage)
911 templ.bind = tex_usage | bind;
1119 unsigned tex_usage = 0;
1126 tex_usage |= PIPE_BIND_RENDER_TARGET;
1129 tex_usage |= PIPE_BIND_SAMPLER_VIEW;
1131 if (!tex_usage)
1135 tex_usage |= PIPE_BIND_SCANOUT;
1137 tex_usage |= PIPE_BIND_SHARED;
1139 tex_usage |= PIPE_BIND_LINEAR;
1143 tex_usage |= PIPE_BIND_CURSOR;
1146 tex_usage |= PIPE_BIND_PROTECTED;
1148 tex_usage |= PIPE_BIND_PRIME_BLIT_DST;
1155 templ.bind = tex_usage;