Skip to content

Commit

Permalink
test upstream changes, hopefully this doesn't break freedreno
Browse files Browse the repository at this point in the history
  • Loading branch information
SolDev69 committed Jan 11, 2024
1 parent 177b4c8 commit eaf1b70
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/egl/drivers/dri2/platform_android.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,9 @@ droid_create_image_from_native_buffer(_EGLDisplay *disp,
/* May fail in some cases, defaults will be used in that case */
u_gralloc_get_buffer_color_info(dri2_dpy->gralloc, &gr_handle, &color_info);

if (!img && !kgsl_window_buffer_get_buffer_info(dri2_dpy, buf, &buf_info))
img = droid_create_image_from_buffer_info(dri2_dpy, &buf_info, priv);
img = droid_create_image_from_buffer_info(dri2_dpy, buf->width, buf->height,
&buf_info, &color_info, priv);

if (!img && !native_window_buffer_get_buffer_info(dri2_dpy, buf, &buf_info))
img = droid_create_image_from_buffer_info(dri2_dpy, &buf_info, priv);

if (!img) {
/* If dri driver is gallium virgl, real modifier info queried back from
Expand Down

0 comments on commit eaf1b70

Please sign in to comment.