Lines Matching defs:res

53    struct pipe_resource res_tmpl, *res;
101 res = pipe->screen->resource_create(pipe->screen, &res_tmpl);
102 if (!res)
105 vlVdpDefaultSamplerViewTemplate(&sv_templ, res);
106 vlsurface->sampler_view = pipe->create_sampler_view(pipe, res, &sv_templ);
111 surf_templ.format = res->format;
112 vlsurface->surface = pipe->create_surface(pipe, res, &surf_templ);
120 pipe_resource_reference(&res, NULL);
133 pipe_resource_reference(&res, NULL);
204 struct pipe_resource *res;
222 res = vlsurface->sampler_view->texture;
223 box = RectToPipeBox(source_rect, res);
224 map = pipe->texture_map(pipe, res, 0, PIPE_MAP_READ, &box, &transfer);
230 util_copy_rect(*destination_data, res->format, *destination_pitches, 0, 0,
303 struct pipe_resource *res, res_tmpl;
356 res = context->screen->resource_create(context->screen, &res_tmpl);
357 if (!res)
361 box.width = res->width0;
362 box.height = res->height0;
363 box.depth = res->depth0;
365 context->texture_subdata(context, res, 0, PIPE_MAP_WRITE, &box,
367 source_pitch[0] * res->height0);
370 u_sampler_view_default_template(&sv_tmpl, res, res->format);
372 sv_idx = context->create_sampler_view(context, res, &sv_tmpl);
373 pipe_resource_reference(&res, NULL);
389 res = context->screen->resource_create(context->screen, &res_tmpl);
390 if (!res)
394 box.width = res->width0;
395 box.height = res->height0;
396 box.depth = res->depth0;
398 context->texture_subdata(context, res, 0, PIPE_MAP_WRITE, &box, color_table,
399 util_format_get_stride(colortbl_format, res->width0), 0);
402 u_sampler_view_default_template(&sv_tmpl, res, res->format);
404 sv_tbl = context->create_sampler_view(context, res, &sv_tmpl);
405 pipe_resource_reference(&res, NULL);