Lines Matching defs:res
71 struct pipe_resource *res = NULL;
89 pipe_resource_reference(&res, sv->texture);
90 return res;
98 struct pipe_resource *res = NULL;
105 pipe_resource_reference(&res, f((uintptr_t)vdpSurface));
106 return res;
114 struct pipe_resource templ, *res;
139 res = st->screen->resource_from_handle(st->screen, &templ, &whandle,
143 return res;
194 struct pipe_resource *res;
199 res = st_vdpau_output_surface_dma_buf(ctx, vdpSurface);
201 if (!res)
202 res = st_vdpau_output_surface_gallium(ctx, vdpSurface);
205 res = st_vdpau_video_surface_dma_buf(ctx, vdpSurface, index);
207 if (!res) {
208 res = st_vdpau_video_surface_gallium(ctx, vdpSurface, index);
214 if (res && res->screen != screen) {
220 res->screen->get_param(res->screen, PIPE_CAP_DMABUF) &&
221 res->screen->resource_get_handle(res->screen, NULL, res, &whandle,
224 new_res = screen->resource_from_handle(screen, res, &whandle, usage);
228 pipe_resource_reference(&res, NULL);
229 res = new_res;
232 if (!res) {
243 texFormat = st_pipe_format_to_mesa_format(res->format);
246 res->width0, res->height0, 1, 0, GL_RGBA,
249 pipe_resource_reference(&texObj->pt, res);
251 pipe_resource_reference(&texImage->pt, res);
253 texObj->surface_format = res->format;
258 pipe_resource_reference(&res, NULL);