Lines Matching refs:res_tmpl
53 struct pipe_resource res_tmpl, *res; in vlVdpOutputSurfaceCreate() local
76 memset(&res_tmpl, 0, sizeof(res_tmpl)); in vlVdpOutputSurfaceCreate()
86 res_tmpl.target = PIPE_TEXTURE_2D; in vlVdpOutputSurfaceCreate()
87 res_tmpl.format = VdpFormatRGBAToPipe(rgba_format); in vlVdpOutputSurfaceCreate()
88 res_tmpl.width0 = width; in vlVdpOutputSurfaceCreate()
89 res_tmpl.height0 = height; in vlVdpOutputSurfaceCreate()
90 res_tmpl.depth0 = 1; in vlVdpOutputSurfaceCreate()
91 res_tmpl.array_size = 1; in vlVdpOutputSurfaceCreate()
92 res_tmpl.bind = PIPE_BIND_SAMPLER_VIEW | PIPE_BIND_RENDER_TARGET | in vlVdpOutputSurfaceCreate()
94 res_tmpl.usage = PIPE_USAGE_DEFAULT; in vlVdpOutputSurfaceCreate()
98 if (!CheckSurfaceParams(pipe->screen, &res_tmpl)) in vlVdpOutputSurfaceCreate()
101 res = pipe->screen->resource_create(pipe->screen, &res_tmpl); in vlVdpOutputSurfaceCreate()
303 struct pipe_resource *res, res_tmpl; in vlVdpOutputSurfacePutBitsIndexed() local
332 memset(&res_tmpl, 0, sizeof(res_tmpl)); in vlVdpOutputSurfacePutBitsIndexed()
333 res_tmpl.target = PIPE_TEXTURE_2D; in vlVdpOutputSurfacePutBitsIndexed()
334 res_tmpl.format = index_format; in vlVdpOutputSurfacePutBitsIndexed()
337 res_tmpl.width0 = abs(destination_rect->x0-destination_rect->x1); in vlVdpOutputSurfacePutBitsIndexed()
338 res_tmpl.height0 = abs(destination_rect->y0-destination_rect->y1); in vlVdpOutputSurfacePutBitsIndexed()
340 res_tmpl.width0 = vlsurface->surface->texture->width0; in vlVdpOutputSurfacePutBitsIndexed()
341 res_tmpl.height0 = vlsurface->surface->texture->height0; in vlVdpOutputSurfacePutBitsIndexed()
343 res_tmpl.depth0 = 1; in vlVdpOutputSurfacePutBitsIndexed()
344 res_tmpl.array_size = 1; in vlVdpOutputSurfacePutBitsIndexed()
345 res_tmpl.usage = PIPE_USAGE_STAGING; in vlVdpOutputSurfacePutBitsIndexed()
346 res_tmpl.bind = PIPE_BIND_SAMPLER_VIEW; in vlVdpOutputSurfacePutBitsIndexed()
350 if (!CheckSurfaceParams(context->screen, &res_tmpl)) in vlVdpOutputSurfacePutBitsIndexed()
353 res = context->screen->resource_create(context->screen, &res_tmpl); in vlVdpOutputSurfacePutBitsIndexed()
375 memset(&res_tmpl, 0, sizeof(res_tmpl)); in vlVdpOutputSurfacePutBitsIndexed()
376 res_tmpl.target = PIPE_TEXTURE_1D; in vlVdpOutputSurfacePutBitsIndexed()
377 res_tmpl.format = colortbl_format; in vlVdpOutputSurfacePutBitsIndexed()
378 res_tmpl.width0 = 1 << util_format_get_component_bits( in vlVdpOutputSurfacePutBitsIndexed()
380 res_tmpl.height0 = 1; in vlVdpOutputSurfacePutBitsIndexed()
381 res_tmpl.depth0 = 1; in vlVdpOutputSurfacePutBitsIndexed()
382 res_tmpl.array_size = 1; in vlVdpOutputSurfacePutBitsIndexed()
383 res_tmpl.usage = PIPE_USAGE_STAGING; in vlVdpOutputSurfacePutBitsIndexed()
384 res_tmpl.bind = PIPE_BIND_SAMPLER_VIEW; in vlVdpOutputSurfacePutBitsIndexed()
386 res = context->screen->resource_create(context->screen, &res_tmpl); in vlVdpOutputSurfacePutBitsIndexed()