Egldevices: Use valid DRM handle to get platform display
Use a valid DRM handle as display attribute to get platform display. This fix is used together with the default framebuffer fix for the display issue of egldevices backend on Jetson AGX Orin devkit. Pick-to: 6.6 6.5 Change-Id: Ia1975936653461c5a7e534c714a123837c62bc10 Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
This commit is contained in:
parent
17a68dae5e
commit
1aba24a2ed
@ -38,8 +38,11 @@ EGLDisplay QEglFSKmsEglDeviceIntegration::createDisplay(EGLNativeDisplayType nat
|
||||
|
||||
EGLDisplay display;
|
||||
|
||||
EGLint egldevice_fd = device()->fd();
|
||||
|
||||
const EGLint attribs[] = { EGL_DRM_MASTER_FD_EXT, egldevice_fd, EGL_NONE };
|
||||
if (m_funcs->has_egl_platform_device) {
|
||||
display = m_funcs->get_platform_display(EGL_PLATFORM_DEVICE_EXT, nativeDisplay, nullptr);
|
||||
display = m_funcs->get_platform_display(EGL_PLATFORM_DEVICE_EXT, nativeDisplay, attribs);
|
||||
} else {
|
||||
qWarning("EGL_EXT_platform_device not available, falling back to legacy path!");
|
||||
display = eglGetDisplay(nativeDisplay);
|
||||
|
Loading…
x
Reference in New Issue
Block a user