Home
last modified time | relevance | path

Searched refs:res_tmpl (Results 1 – 5 of 5) sorted by relevance

/external/mesa3d/src/gallium/state_trackers/vdpau/
Doutput.c50 struct pipe_resource res_tmpl, *res; in vlVdpOutputSurfaceCreate() local
73 memset(&res_tmpl, 0, sizeof(res_tmpl)); in vlVdpOutputSurfaceCreate()
75 res_tmpl.target = PIPE_TEXTURE_2D; in vlVdpOutputSurfaceCreate()
76 res_tmpl.format = FormatRGBAToPipe(rgba_format); in vlVdpOutputSurfaceCreate()
77 res_tmpl.width0 = width; in vlVdpOutputSurfaceCreate()
78 res_tmpl.height0 = height; in vlVdpOutputSurfaceCreate()
79 res_tmpl.depth0 = 1; in vlVdpOutputSurfaceCreate()
80 res_tmpl.array_size = 1; in vlVdpOutputSurfaceCreate()
81 res_tmpl.bind = PIPE_BIND_SAMPLER_VIEW | PIPE_BIND_RENDER_TARGET; in vlVdpOutputSurfaceCreate()
82 res_tmpl.usage = PIPE_USAGE_STATIC; in vlVdpOutputSurfaceCreate()
[all …]
Dbitmap.c46 struct pipe_resource res_tmpl, *res; in vlVdpBitmapSurfaceCreate() local
71 memset(&res_tmpl, 0, sizeof(res_tmpl)); in vlVdpBitmapSurfaceCreate()
72 res_tmpl.target = PIPE_TEXTURE_2D; in vlVdpBitmapSurfaceCreate()
73 res_tmpl.format = FormatRGBAToPipe(rgba_format); in vlVdpBitmapSurfaceCreate()
74 res_tmpl.width0 = width; in vlVdpBitmapSurfaceCreate()
75 res_tmpl.height0 = height; in vlVdpBitmapSurfaceCreate()
76 res_tmpl.depth0 = 1; in vlVdpBitmapSurfaceCreate()
77 res_tmpl.array_size = 1; in vlVdpBitmapSurfaceCreate()
78 res_tmpl.bind = PIPE_BIND_SAMPLER_VIEW | PIPE_BIND_RENDER_TARGET; in vlVdpBitmapSurfaceCreate()
79 res_tmpl.usage = frequently_accessed ? PIPE_USAGE_DYNAMIC : PIPE_USAGE_STATIC; in vlVdpBitmapSurfaceCreate()
[all …]
/external/mesa3d/src/gallium/auxiliary/vl/
Dvl_zscan.c351 struct pipe_resource res_tmpl, *res; in vl_zscan_layout() local
370 memset(&res_tmpl, 0, sizeof(res_tmpl)); in vl_zscan_layout()
371 res_tmpl.target = PIPE_TEXTURE_2D; in vl_zscan_layout()
372 res_tmpl.format = PIPE_FORMAT_R32_FLOAT; in vl_zscan_layout()
373 res_tmpl.width0 = VL_BLOCK_WIDTH * blocks_per_line; in vl_zscan_layout()
374 res_tmpl.height0 = VL_BLOCK_HEIGHT; in vl_zscan_layout()
375 res_tmpl.depth0 = 1; in vl_zscan_layout()
376 res_tmpl.array_size = 1; in vl_zscan_layout()
377 res_tmpl.usage = PIPE_USAGE_IMMUTABLE; in vl_zscan_layout()
378 res_tmpl.bind = PIPE_BIND_SAMPLER_VIEW; in vl_zscan_layout()
[all …]
Dvl_video_buffer.c439 struct pipe_resource res_tmpl; in vl_video_buffer_create_ex() local
447 vl_vide_buffer_template(&res_tmpl, tmpl, resource_formats[0], depth, usage, 0); in vl_video_buffer_create_ex()
448 resources[0] = pipe->screen->resource_create(pipe->screen, &res_tmpl); in vl_video_buffer_create_ex()
457 vl_vide_buffer_template(&res_tmpl, tmpl, resource_formats[1], depth, usage, 1); in vl_video_buffer_create_ex()
458 resources[1] = pipe->screen->resource_create(pipe->screen, &res_tmpl); in vl_video_buffer_create_ex()
465 vl_vide_buffer_template(&res_tmpl, tmpl, resource_formats[2], depth, usage, 2); in vl_video_buffer_create_ex()
466 resources[2] = pipe->screen->resource_create(pipe->screen, &res_tmpl); in vl_video_buffer_create_ex()
Dvl_mpeg12_decoder.c88 struct pipe_resource *res, res_tmpl; in init_zscan_buffer() local
96 memset(&res_tmpl, 0, sizeof(res_tmpl)); in init_zscan_buffer()
97 res_tmpl.target = PIPE_TEXTURE_2D; in init_zscan_buffer()
98 res_tmpl.format = dec->zscan_source_format; in init_zscan_buffer()
99 res_tmpl.width0 = dec->blocks_per_line * VL_BLOCK_WIDTH * VL_BLOCK_HEIGHT; in init_zscan_buffer()
100 res_tmpl.height0 = align(dec->num_blocks, dec->blocks_per_line) / dec->blocks_per_line; in init_zscan_buffer()
101 res_tmpl.depth0 = 1; in init_zscan_buffer()
102 res_tmpl.array_size = 1; in init_zscan_buffer()
103 res_tmpl.usage = PIPE_USAGE_STREAM; in init_zscan_buffer()
104 res_tmpl.bind = PIPE_BIND_SAMPLER_VIEW; in init_zscan_buffer()
[all …]