Lines Matching refs:dev
44 vlVdpDevice *dev = NULL; in vdp_imp_device_create_x11() local
55 dev = CALLOC(1, sizeof(vlVdpDevice)); in vdp_imp_device_create_x11()
56 if (!dev) { in vdp_imp_device_create_x11()
61 dev->vscreen = vl_screen_create(display, screen); in vdp_imp_device_create_x11()
62 if (!dev->vscreen) { in vdp_imp_device_create_x11()
67 pscreen = dev->vscreen->pscreen; in vdp_imp_device_create_x11()
68 dev->context = pscreen->context_create(pscreen, dev->vscreen); in vdp_imp_device_create_x11()
69 if (!dev->context) { in vdp_imp_device_create_x11()
74 *device = vlAddDataHTAB(dev); in vdp_imp_device_create_x11()
80 vl_compositor_init(&dev->compositor, dev->context); in vdp_imp_device_create_x11()
81 pipe_mutex_init(dev->mutex); in vdp_imp_device_create_x11()
90 vl_screen_destroy(dev->vscreen); in vdp_imp_device_create_x11()
92 FREE(dev); in vdp_imp_device_create_x11()
112 vlVdpDevice *dev = vlGetDataHTAB(device); in vlVdpPresentationQueueTargetCreateX11() local
113 if (!dev) in vlVdpPresentationQueueTargetCreateX11()
120 pqt->device = dev; in vlVdpPresentationQueueTargetCreateX11()
160 vlVdpDevice *dev = vlGetDataHTAB(device); in vlVdpDeviceDestroy() local
161 if (!dev) in vlVdpDeviceDestroy()
164 pipe_mutex_destroy(dev->mutex); in vlVdpDeviceDestroy()
165 vl_compositor_cleanup(&dev->compositor); in vlVdpDeviceDestroy()
166 dev->context->destroy(dev->context); in vlVdpDeviceDestroy()
167 vl_screen_destroy(dev->vscreen); in vlVdpDeviceDestroy()
169 FREE(dev); in vlVdpDeviceDestroy()
181 vlVdpDevice *dev = vlGetDataHTAB(device); in vlVdpGetProcAddress() local
182 if (!dev) in vlVdpGetProcAddress()
262 vlVdpResolveDelayedRendering(vlVdpDevice *dev, struct pipe_surface *surface, struct u_rect *dirty_a… in vlVdpResolveDelayedRendering() argument
267 assert(dev); in vlVdpResolveDelayedRendering()
269 cstate = dev->delayed_rendering.cstate; in vlVdpResolveDelayedRendering()
273 vlsurface = vlGetDataHTAB(dev->delayed_rendering.surface); in vlVdpResolveDelayedRendering()
282 vl_compositor_render(cstate, &dev->compositor, surface, dirty_area); in vlVdpResolveDelayedRendering()
284 dev->delayed_rendering.surface = VDP_INVALID_HANDLE; in vlVdpResolveDelayedRendering()
285 dev->delayed_rendering.cstate = NULL; in vlVdpResolveDelayedRendering()
294 vlsurface->sampler_view = dev->context->create_sampler_view(dev->context, res, &sv_templ); in vlVdpResolveDelayedRendering()
301 vlVdpSave4DelayedRendering(vlVdpDevice *dev, VdpOutputSurface surface, struct vl_compositor_state *… in vlVdpSave4DelayedRendering() argument
303 assert(dev); in vlVdpSave4DelayedRendering()
305 vlVdpResolveDelayedRendering(dev, NULL, NULL); in vlVdpSave4DelayedRendering()
307 dev->delayed_rendering.surface = surface; in vlVdpSave4DelayedRendering()
308 dev->delayed_rendering.cstate = cstate; in vlVdpSave4DelayedRendering()