Skip to content

Commit a359844

Browse files
committed
support android-rpi
1 parent 8c14a28 commit a359844

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

meson_options.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ option(
482482
'platform-sdk-version',
483483
type : 'integer',
484484
min : 25,
485-
max : 31,
485+
max : 32,
486486
value : 25,
487487
description : 'Android Platform SDK version. Default: Nougat version.'
488488
)

src/egl/drivers/dri2/platform_android.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ get_yuv_buffer_info(struct dri2_egl_display *dri2_dpy,
239239
.drm_fourcc = drm_fourcc,
240240
.num_planes = ycbcr.chroma_step == 2 ? 2 : 3,
241241
.fds = { -1, -1, -1, -1 },
242-
.modifier = DRM_FORMAT_MOD_INVALID,
242+
.modifier = DRM_FORMAT_MOD_LINEAR,
243243
.yuv_color_space = EGL_ITU_REC601_EXT,
244244
.sample_range = EGL_YUV_NARROW_RANGE_EXT,
245245
.horizontal_siting = EGL_YUV_CHROMA_SITING_0_EXT,
@@ -337,7 +337,7 @@ native_window_buffer_get_buffer_info(struct dri2_egl_display *dri2_dpy,
337337
.drm_fourcc = drm_fourcc,
338338
.num_planes = num_planes,
339339
.fds = { fds[0], -1, -1, -1 },
340-
.modifier = DRM_FORMAT_MOD_INVALID,
340+
.modifier = DRM_FORMAT_MOD_LINEAR,
341341
.offsets = { 0, 0, 0, 0 },
342342
.pitches = { pitch, 0, 0, 0 },
343343
.yuv_color_space = EGL_ITU_REC601_EXT,

src/gbm/main/backend.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,13 +198,13 @@ backend_from_driver_name(int fd)
198198
if (!v)
199199
return NULL;
200200

201-
lib = loader_open_driver_lib(v->name, BACKEND_LIB_SUFFIX,
201+
lib = loader_open_driver_lib("kmsro", BACKEND_LIB_SUFFIX,
202202
backend_search_path_vars,
203203
DEFAULT_BACKENDS_PATH,
204204
false);
205205

206206
if (lib)
207-
dev = load_backend(lib, fd, v->name);
207+
dev = load_backend(lib, fd, "kmsro");
208208

209209
drmFreeVersion(v);
210210

0 commit comments

Comments
 (0)