mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 09:18:04 +02:00
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:
parent
7b92e11e16
commit
13066905d3
1 changed files with 1 additions and 4 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue