Home
last modified time | relevance | path

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

/external/mesa3d/src/gallium/state_trackers/vdpau/
Dbitmap.c46 struct pipe_resource res_tmpl, *res; in vlVdpBitmapSurfaceCreate() local
72 memset(&res_tmpl, 0, sizeof(res_tmpl)); in vlVdpBitmapSurfaceCreate()
73 res_tmpl.target = PIPE_TEXTURE_2D; in vlVdpBitmapSurfaceCreate()
74 res_tmpl.format = VdpFormatRGBAToPipe(rgba_format); in vlVdpBitmapSurfaceCreate()
75 res_tmpl.width0 = width; in vlVdpBitmapSurfaceCreate()
76 res_tmpl.height0 = height; in vlVdpBitmapSurfaceCreate()
77 res_tmpl.depth0 = 1; in vlVdpBitmapSurfaceCreate()
78 res_tmpl.array_size = 1; in vlVdpBitmapSurfaceCreate()
79 res_tmpl.bind = PIPE_BIND_SAMPLER_VIEW | PIPE_BIND_RENDER_TARGET; in vlVdpBitmapSurfaceCreate()
80 res_tmpl.usage = frequently_accessed ? PIPE_USAGE_DYNAMIC : PIPE_USAGE_DEFAULT; in vlVdpBitmapSurfaceCreate()
[all …]
Doutput.c53 struct pipe_resource res_tmpl, *res; in vlVdpOutputSurfaceCreate() local
76 memset(&res_tmpl, 0, sizeof(res_tmpl)); in vlVdpOutputSurfaceCreate()
85 res_tmpl.target = PIPE_TEXTURE_2D; in vlVdpOutputSurfaceCreate()
86 res_tmpl.format = VdpFormatRGBAToPipe(rgba_format); in vlVdpOutputSurfaceCreate()
87 res_tmpl.width0 = width; in vlVdpOutputSurfaceCreate()
88 res_tmpl.height0 = height; in vlVdpOutputSurfaceCreate()
89 res_tmpl.depth0 = 1; in vlVdpOutputSurfaceCreate()
90 res_tmpl.array_size = 1; in vlVdpOutputSurfaceCreate()
91 res_tmpl.bind = PIPE_BIND_SAMPLER_VIEW | PIPE_BIND_RENDER_TARGET | in vlVdpOutputSurfaceCreate()
93 res_tmpl.usage = PIPE_USAGE_DEFAULT; in vlVdpOutputSurfaceCreate()
[all …]
Ddevice.c45 struct pipe_resource *res, res_tmpl; in vdp_imp_device_create_x11() local
86 memset(&res_tmpl, 0, sizeof(res_tmpl)); in vdp_imp_device_create_x11()
88 res_tmpl.target = PIPE_TEXTURE_2D; in vdp_imp_device_create_x11()
89 res_tmpl.format = PIPE_FORMAT_R8G8B8A8_UNORM; in vdp_imp_device_create_x11()
90 res_tmpl.width0 = 1; in vdp_imp_device_create_x11()
91 res_tmpl.height0 = 1; in vdp_imp_device_create_x11()
92 res_tmpl.depth0 = 1; in vdp_imp_device_create_x11()
93 res_tmpl.array_size = 1; in vdp_imp_device_create_x11()
94 res_tmpl.bind = PIPE_BIND_SAMPLER_VIEW; in vdp_imp_device_create_x11()
95 res_tmpl.usage = PIPE_USAGE_DEFAULT; in vdp_imp_device_create_x11()
[all …]
Dmixer.c253 struct pipe_resource res_tmpl, *res; in vlVdpVideoMixerRender() local
348 memset(&res_tmpl, 0, sizeof(res_tmpl)); in vlVdpVideoMixerRender()
350 res_tmpl.target = PIPE_TEXTURE_2D; in vlVdpVideoMixerRender()
351 res_tmpl.format = dst->sampler_view->format; in vlVdpVideoMixerRender()
352 res_tmpl.depth0 = 1; in vlVdpVideoMixerRender()
353 res_tmpl.array_size = 1; in vlVdpVideoMixerRender()
354 res_tmpl.bind = PIPE_BIND_SAMPLER_VIEW | PIPE_BIND_RENDER_TARGET; in vlVdpVideoMixerRender()
355 res_tmpl.usage = PIPE_USAGE_DEFAULT; in vlVdpVideoMixerRender()
358 res_tmpl.width0 = dst->surface->width; in vlVdpVideoMixerRender()
359 res_tmpl.height0 = dst->surface->height; in vlVdpVideoMixerRender()
[all …]
/external/mesa3d/src/gallium/auxiliary/vl/
Dvl_zscan.c377 struct pipe_resource res_tmpl, *res; in vl_zscan_layout() local
396 memset(&res_tmpl, 0, sizeof(res_tmpl)); in vl_zscan_layout()
397 res_tmpl.target = PIPE_TEXTURE_2D; in vl_zscan_layout()
398 res_tmpl.format = PIPE_FORMAT_R32_FLOAT; in vl_zscan_layout()
399 res_tmpl.width0 = VL_BLOCK_WIDTH * blocks_per_line; in vl_zscan_layout()
400 res_tmpl.height0 = VL_BLOCK_HEIGHT; in vl_zscan_layout()
401 res_tmpl.depth0 = 1; in vl_zscan_layout()
402 res_tmpl.array_size = 1; in vl_zscan_layout()
403 res_tmpl.usage = PIPE_USAGE_IMMUTABLE; in vl_zscan_layout()
404 res_tmpl.bind = PIPE_BIND_SAMPLER_VIEW; in vl_zscan_layout()
[all …]
Dvl_video_buffer.c470 struct pipe_resource res_tmpl; in vl_video_buffer_create_ex() local
478 vl_video_buffer_template(&res_tmpl, tmpl, resource_formats[0], depth, array_size, usage, 0); in vl_video_buffer_create_ex()
479 resources[0] = pipe->screen->resource_create(pipe->screen, &res_tmpl); in vl_video_buffer_create_ex()
488 vl_video_buffer_template(&res_tmpl, tmpl, resource_formats[1], depth, array_size, usage, 1); in vl_video_buffer_create_ex()
489 resources[1] = pipe->screen->resource_create(pipe->screen, &res_tmpl); in vl_video_buffer_create_ex()
496 vl_video_buffer_template(&res_tmpl, tmpl, resource_formats[2], depth, array_size, usage, 2); in vl_video_buffer_create_ex()
497 resources[2] = pipe->screen->resource_create(pipe->screen, &res_tmpl); in vl_video_buffer_create_ex()
Dvl_mpeg12_decoder.c167 struct pipe_resource *res, res_tmpl; in init_zscan_buffer() local
175 memset(&res_tmpl, 0, sizeof(res_tmpl)); in init_zscan_buffer()
176 res_tmpl.target = PIPE_TEXTURE_2D; in init_zscan_buffer()
177 res_tmpl.format = dec->zscan_source_format; in init_zscan_buffer()
178 res_tmpl.width0 = dec->blocks_per_line * VL_BLOCK_WIDTH * VL_BLOCK_HEIGHT; in init_zscan_buffer()
179 res_tmpl.height0 = align(dec->num_blocks, dec->blocks_per_line) / dec->blocks_per_line; in init_zscan_buffer()
180 res_tmpl.depth0 = 1; in init_zscan_buffer()
181 res_tmpl.array_size = 1; in init_zscan_buffer()
182 res_tmpl.usage = PIPE_USAGE_STREAM; in init_zscan_buffer()
183 res_tmpl.bind = PIPE_BIND_SAMPLER_VIEW; in init_zscan_buffer()
[all …]