Home
last modified time | relevance | path

Searched refs:vlsurface (Results 1 – 3 of 3) sorted by relevance

/third_party/mesa3d/src/gallium/frontends/vdpau/
Doutput.c57 vlVdpOutputSurface *vlsurface = NULL; in vlVdpOutputSurfaceCreate() local
70 vlsurface = CALLOC(1, sizeof(vlVdpOutputSurface)); in vlVdpOutputSurfaceCreate()
71 if (!vlsurface) in vlVdpOutputSurfaceCreate()
74 DeviceReference(&vlsurface->device, dev); in vlVdpOutputSurfaceCreate()
83 vlsurface->send_to_X = dev->vscreen->color_depth == 24 && in vlVdpOutputSurfaceCreate()
106 vlsurface->sampler_view = pipe->create_sampler_view(pipe, res, &sv_templ); in vlVdpOutputSurfaceCreate()
107 if (!vlsurface->sampler_view) in vlVdpOutputSurfaceCreate()
112 vlsurface->surface = pipe->create_surface(pipe, res, &surf_templ); in vlVdpOutputSurfaceCreate()
113 if (!vlsurface->surface) in vlVdpOutputSurfaceCreate()
116 *surface = vlAddDataHTAB(vlsurface); in vlVdpOutputSurfaceCreate()
[all …]
Dbitmap.c50 vlVdpBitmapSurface *vlsurface = NULL; in vlVdpBitmapSurfaceCreate() local
66 vlsurface = CALLOC(1, sizeof(vlVdpBitmapSurface)); in vlVdpBitmapSurfaceCreate()
67 if (!vlsurface) in vlVdpBitmapSurfaceCreate()
70 DeviceReference(&vlsurface->device, dev); in vlVdpBitmapSurfaceCreate()
96 vlsurface->sampler_view = pipe->create_sampler_view(pipe, res, &sv_templ); in vlVdpBitmapSurfaceCreate()
100 if (!vlsurface->sampler_view) { in vlVdpBitmapSurfaceCreate()
107 *surface = vlAddDataHTAB(vlsurface); in vlVdpBitmapSurfaceCreate()
117 pipe_sampler_view_reference(&vlsurface->sampler_view, NULL); in vlVdpBitmapSurfaceCreate()
120 DeviceReference(&vlsurface->device, NULL); in vlVdpBitmapSurfaceCreate()
121 FREE(vlsurface); in vlVdpBitmapSurfaceCreate()
[all …]
Dsurface.c203 vlVdpSurface *vlsurface; in vlVdpVideoSurfaceGetBitsYCbCr() local
210 vlsurface = vlGetDataHTAB(surface); in vlVdpVideoSurfaceGetBitsYCbCr()
211 if (!vlsurface) in vlVdpVideoSurfaceGetBitsYCbCr()
214 pipe = vlsurface->device->context; in vlVdpVideoSurfaceGetBitsYCbCr()
225 if (vlsurface->video_buffer == NULL) in vlVdpVideoSurfaceGetBitsYCbCr()
228 buffer_format = vlsurface->video_buffer->buffer_format; in vlVdpVideoSurfaceGetBitsYCbCr()
241 mtx_lock(&vlsurface->device->mutex); in vlVdpVideoSurfaceGetBitsYCbCr()
242 sampler_views = vlsurface->video_buffer->get_sampler_view_planes(vlsurface->video_buffer); in vlVdpVideoSurfaceGetBitsYCbCr()
244 mtx_unlock(&vlsurface->device->mutex); in vlVdpVideoSurfaceGetBitsYCbCr()
253 vlVdpVideoSurfaceSize(vlsurface, i, &width, &height); in vlVdpVideoSurfaceGetBitsYCbCr()
[all …]