Lines Matching refs:tex_usage
854 unsigned tex_usage = 0; in dri2_create_image_from_winsys() local
861 tex_usage |= PIPE_BIND_RENDER_TARGET; in dri2_create_image_from_winsys()
864 tex_usage |= PIPE_BIND_SAMPLER_VIEW; in dri2_create_image_from_winsys()
867 if (!tex_usage && map->pipe_format == PIPE_FORMAT_NV12 && in dri2_create_image_from_winsys()
871 tex_usage |= PIPE_BIND_SAMPLER_VIEW; in dri2_create_image_from_winsys()
877 if (!tex_usage && map->pipe_format == PIPE_FORMAT_YUYV && in dri2_create_image_from_winsys()
881 tex_usage |= PIPE_BIND_SAMPLER_VIEW; in dri2_create_image_from_winsys()
884 if (!tex_usage && map->pipe_format == PIPE_FORMAT_UYVY && in dri2_create_image_from_winsys()
888 tex_usage |= PIPE_BIND_SAMPLER_VIEW; in dri2_create_image_from_winsys()
891 if (!tex_usage && util_format_is_yuv(map->pipe_format)) { in dri2_create_image_from_winsys()
900 tex_usage |= PIPE_BIND_SAMPLER_VIEW; in dri2_create_image_from_winsys()
903 if (!tex_usage) in dri2_create_image_from_winsys()
911 templ.bind = tex_usage | bind; in dri2_create_image_from_winsys()
1119 unsigned tex_usage = 0; in dri2_create_image_common() local
1126 tex_usage |= PIPE_BIND_RENDER_TARGET; in dri2_create_image_common()
1129 tex_usage |= PIPE_BIND_SAMPLER_VIEW; in dri2_create_image_common()
1131 if (!tex_usage) in dri2_create_image_common()
1135 tex_usage |= PIPE_BIND_SCANOUT; in dri2_create_image_common()
1137 tex_usage |= PIPE_BIND_SHARED; in dri2_create_image_common()
1139 tex_usage |= PIPE_BIND_LINEAR; in dri2_create_image_common()
1143 tex_usage |= PIPE_BIND_CURSOR; in dri2_create_image_common()
1146 tex_usage |= PIPE_BIND_PROTECTED; in dri2_create_image_common()
1148 tex_usage |= PIPE_BIND_PRIME_BLIT_DST; in dri2_create_image_common()
1155 templ.bind = tex_usage; in dri2_create_image_common()