Lines Matching defs:res_tmpl

53    struct pipe_resource res_tmpl, *res;
76 memset(&res_tmpl, 0, sizeof(res_tmpl));
86 res_tmpl.target = PIPE_TEXTURE_2D;
87 res_tmpl.format = VdpFormatRGBAToPipe(rgba_format);
88 res_tmpl.width0 = width;
89 res_tmpl.height0 = height;
90 res_tmpl.depth0 = 1;
91 res_tmpl.array_size = 1;
92 res_tmpl.bind = PIPE_BIND_SAMPLER_VIEW | PIPE_BIND_RENDER_TARGET |
94 res_tmpl.usage = PIPE_USAGE_DEFAULT;
98 if (!CheckSurfaceParams(pipe->screen, &res_tmpl))
101 res = pipe->screen->resource_create(pipe->screen, &res_tmpl);
303 struct pipe_resource *res, res_tmpl;
332 memset(&res_tmpl, 0, sizeof(res_tmpl));
333 res_tmpl.target = PIPE_TEXTURE_2D;
334 res_tmpl.format = index_format;
339 res_tmpl.width0 = destination_rect->x1 - destination_rect->x0;
340 res_tmpl.height0 = destination_rect->y1 - destination_rect->y0;
343 res_tmpl.width0 = vlsurface->surface->texture->width0;
344 res_tmpl.height0 = vlsurface->surface->texture->height0;
346 res_tmpl.depth0 = 1;
347 res_tmpl.array_size = 1;
348 res_tmpl.usage = PIPE_USAGE_STAGING;
349 res_tmpl.bind = PIPE_BIND_SAMPLER_VIEW;
353 if (!CheckSurfaceParams(context->screen, &res_tmpl))
356 res = context->screen->resource_create(context->screen, &res_tmpl);
378 memset(&res_tmpl, 0, sizeof(res_tmpl));
379 res_tmpl.target = PIPE_TEXTURE_1D;
380 res_tmpl.format = colortbl_format;
381 res_tmpl.width0 = 1 << util_format_get_component_bits(
383 res_tmpl.height0 = 1;
384 res_tmpl.depth0 = 1;
385 res_tmpl.array_size = 1;
386 res_tmpl.usage = PIPE_USAGE_STAGING;
387 res_tmpl.bind = PIPE_BIND_SAMPLER_VIEW;
389 res = context->screen->resource_create(context->screen, &res_tmpl);