egl/android: call dri2_display_create() like every other driver
Acked-by: Daniel Stone <daniels@collabora.com> Reviewed-by: Eric Engestrom <eric@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30773>
This commit is contained in:
committed by
Marge Bot
parent
7b92e11e16
commit
13066905d3
@@ -1186,13 +1186,10 @@ dri2_initialize_android(_EGLDisplay *disp)
|
||||
struct dri2_egl_display *dri2_dpy;
|
||||
const char *err;
|
||||
|
||||
dri2_dpy = calloc(1, sizeof(*dri2_dpy));
|
||||
dri2_dpy = dri2_display_create();
|
||||
if (!dri2_dpy)
|
||||
return _eglError(EGL_BAD_ALLOC, "eglInitialize");
|
||||
|
||||
dri2_dpy->fd_render_gpu = -1;
|
||||
dri2_dpy->fd_display_gpu = -1;
|
||||
|
||||
dri2_dpy->gralloc = u_gralloc_create(U_GRALLOC_TYPE_AUTO);
|
||||
if (dri2_dpy->gralloc == NULL) {
|
||||
err = "DRI2: failed to get gralloc";
|
||||
|
||||
Reference in New Issue
Block a user