Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 941253
Collapse All | Expand All

(-)a/src/i965_output_wayland.c (-4 / +4 lines)
Lines 154-160 registry_handle_global( Link Here
154
    struct va_wl_output * const wl_output = i965->wl_output;
154
    struct va_wl_output * const wl_output = i965->wl_output;
155
    struct wl_vtable * const wl_vtable = &wl_output->vtable;
155
    struct wl_vtable * const wl_vtable = &wl_output->vtable;
156
156
157
    if (strcmp(interface, "wl_drm") == 0) {
157
    if (strcmp(interface, "wl_drm") == 0 && wl_vtable->drm_interface) {
158
        wl_output->wl_drm_name = name;
158
        wl_output->wl_drm_name = name;
159
        wl_output->wl_drm = registry_bind(wl_vtable, wl_output->wl_registry,
159
        wl_output->wl_drm = registry_bind(wl_vtable, wl_output->wl_registry,
160
                                          name, wl_vtable->drm_interface,
160
                                          name, wl_vtable->drm_interface,
Lines 472-477 i965_output_wayland_init(VADriverContextP ctx) Link Here
472
472
473
    wl_vtable = &i965->wl_output->vtable;
473
    wl_vtable = &i965->wl_output->vtable;
474
474
475
    /* drm_interface is optional */
475
    if (vtable->wl_interface)
476
    if (vtable->wl_interface)
476
        wl_vtable->drm_interface = vtable->wl_interface;
477
        wl_vtable->drm_interface = vtable->wl_interface;
477
    else {
478
    else {
Lines 483-491 i965_output_wayland_init(VADriverContextP ctx) Link Here
483
        }
484
        }
484
485
485
        dso_handle = i965->wl_output->libegl_handle;
486
        dso_handle = i965->wl_output->libegl_handle;
486
        if (!dso_get_symbols(dso_handle, wl_vtable, sizeof(*wl_vtable),
487
        dso_get_symbols(dso_handle, wl_vtable, sizeof(*wl_vtable),
487
                             libegl_symbols))
488
                        libegl_symbols);
488
            goto error;
489
    }
489
    }
490
490
491
    i965->wl_output->libwl_client_handle = dso_open(LIBWAYLAND_CLIENT_NAME);
491
    i965->wl_output->libwl_client_handle = dso_open(LIBWAYLAND_CLIENT_NAME);

Return to bug 941253