auxiliary/vl: rename vl_screen_create to vl_dri2_screen_create
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 9 Nov 2015 11:17:07 +0000 (11:17 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 20 Nov 2015 10:56:34 +0000 (10:56 +0000)
In a preparation of having proper multi-platform/backend handling in VL.

With follow up commits we'll introduce a dispatch within vl_screen
similar to the one in pipe_screen. This way any VL state-tracker can
operate seamlessly, considering the backend/platform is properly setup.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
src/gallium/auxiliary/vl/vl_winsys.h
src/gallium/auxiliary/vl/vl_winsys_dri.c
src/gallium/state_trackers/omx/entrypoint.c
src/gallium/state_trackers/va/context.c
src/gallium/state_trackers/vdpau/device.c
src/gallium/state_trackers/xvmc/context.c

index df01917466f74beef7b140098af272da4e822c57..9aa65ad320037c68308c2d5b28a396cdc5b74334 100644 (file)
@@ -46,9 +46,6 @@ struct vl_screen
    struct pipe_loader_device *dev;
 };
 
-struct vl_screen*
-vl_screen_create(Display *display, int screen);
-
 void vl_screen_destroy(struct vl_screen *vscreen);
 
 struct pipe_resource*
@@ -67,6 +64,9 @@ void*
 vl_screen_get_private(struct vl_screen *vscreen);
 
 struct vl_screen*
+vl_dri2_screen_create(Display *display, int screen);
+
+struct vl_screen *
 vl_drm_screen_create(int fd);
 
 void
index 3b1b87f9523a6abbe7f8d2a0d59ebd10d80b9371..46f581601af0503afba68b723aac7871b6e6f541 100644 (file)
@@ -306,7 +306,7 @@ get_xcb_screen(xcb_screen_iterator_t iter, int screen)
 }
 
 struct vl_screen*
-vl_screen_create(Display *display, int screen)
+vl_dri2_screen_create(Display *display, int screen)
 {
    struct vl_dri_screen *scrn;
    const xcb_query_extension_reply_t *extension;
index 4716333015b2dc9b5c3856c31ba72e34744b99ed..dd72b296de2f9e8299cf63cd87aad2ca6e872597 100644 (file)
@@ -97,7 +97,7 @@ struct vl_screen *omx_get_screen(void)
          if (!omx_display)
             goto error;
 
-         omx_screen = vl_screen_create(omx_display, 0);
+         omx_screen = vl_dri2_screen_create(omx_display, 0);
          if (!omx_screen) {
             XCloseDisplay(omx_display);
             goto error;
index 04ca2f2abcac1949eb1c0e0faf4f423e2b41acc3..0709dfbef8154b2a1697b338964e624d26f1525e 100644 (file)
@@ -118,7 +118,7 @@ VA_DRIVER_INIT_FUNC(VADriverContextP ctx)
       return VA_STATUS_ERROR_UNIMPLEMENTED;
    case VA_DISPLAY_GLX:
    case VA_DISPLAY_X11:
-      drv->vscreen = vl_screen_create(ctx->native_dpy, ctx->x11_screen);
+      drv->vscreen = vl_dri2_screen_create(ctx->native_dpy, ctx->x11_screen);
       if (!drv->vscreen)
          goto error_screen;
       break;
index 31c95054f569e13068e6c3ad0201bfe3639e2345..8fda388b26b1114b7169715c46d6fd5bca5bb1c6 100644 (file)
@@ -63,7 +63,7 @@ vdp_imp_device_create_x11(Display *display, int screen, VdpDevice *device,
 
    pipe_reference_init(&dev->reference, 1);
 
-   dev->vscreen = vl_screen_create(display, screen);
+   dev->vscreen = vl_dri2_screen_create(display, screen);
    if (!dev->vscreen) {
       ret = VDP_STATUS_RESOURCES;
       goto no_vscreen;
index 4702b44d1f4dfd22b56a8168ee5e27cf694691c5..07b33e41f7d155ce367501c5cc3ac970cc033480 100644 (file)
@@ -229,7 +229,7 @@ Status XvMCCreateContext(Display *dpy, XvPortID port, int surface_type_id,
       return BadAlloc;
 
    /* TODO: Reuse screen if process creates another context */
-   vscreen = vl_screen_create(dpy, scrn);
+   vscreen = vl_dri2_screen_create(dpy, scrn);
 
    if (!vscreen) {
       XVMC_MSG(XVMC_ERR, "[XvMC] Could not create VL screen.\n");