When a wayland egl client initializes, it tries to authenticate
with the server. This is done using drm{Get,Auth}magic calls.
These calls would fail if weston opens card0 because IAHWC also
opens card0 and is the actual master/control client.
Mesa ignores the authentication part when opening the render node
and sends the authenticated response to the client.
Jira: None
Tests: weston-simple-egl app should run.
Signed-off-by: Harish Krupo <harishkrupo@gmail.com>
iahwc_module_t *iahwc_module;
iahwc_device_t *iahwc_device;
- /* const char* device = "/dev/dri/renderD128"; */
- const char *device = "/dev/dri/card0";
+ const char* device = "/dev/dri/renderD128";
const char *seat_id = default_seat;
weston_log(stderr, "Initializing iahwc backend\n");
goto err_compositor;
}
- b->iahwc.fd = weston_launcher_open(b->compositor->launcher, device, O_RDWR);
+ b->iahwc.fd = open(device, O_RDWR);
if (b->iahwc.fd < 0) {
weston_log("unable to open gpu file\n");
goto err_compositor;