NotKit / glamor-hybris

Glamor Xserver 2D acceleration, modified to work with libhybris drivers
Other
3 stars 9 forks source link

cant launch any gles program #1

Open nillerusr opened 4 years ago

nillerusr commented 4 years ago

glamor-hybris compiled with --enable-glamor-gles2

λ ~/ EGL_PLATFORM=x11 ./es2gears_x11 EGL_VERSION = 1.4 Android META-EGL vertex shader info: fragment shader info: info: X Error of failed request: BadPixmap (invalid Pixmap parameter) Major opcode of failed request: 148 () Minor opcode of failed request: 1 Resource id in failed request: 0x1c00007 Serial number of failed request: 23 Current serial number in output stream: 32

acceleration with glamor also not working.

[ 86224.661] (II) Loading sub module "glamoreglhybris" [ 86224.661] (II) LoadModule: "glamoreglhybris" [ 86224.662] (II) Loading /usr/lib/xorg/modules/libglamoreglhybris.so [ 86224.662] (II) Module glamoreglhybris: vendor="X.Org Foundation" [ 86224.662] compiled for 1.20.5, module version = 1.0.0 [ 86224.663] ABI class: X.Org ANSI C Emulation, version 0.4 [ 86224.663] (II) glamor: OpenGL accelerated X.org driver based. [ 86224.663] (II) glamor: EGL version 1.4 Android META-EGL: [ 86224.663] EGL_KHR_surfaceless_context required. [ 86224.663] (II) hwcomposer(0): Using GLES2. [ 86224.663] (WW) hwcomposer(0): Glamor is using GLES2 but GLX needs GL. Indirect GLX may not work correctly. [ 86224.663] (II) hwcomposer(0): glamor-hybris initialized

(gdb) info sharedlibrary From To Syms Read Shared Object Library 0xb6d739c0 0xb6d8ed08 Yes () /lib/ld-linux-armhf.so.3 0xb6d2b5f8 0xb6d45a84 Yes () /lib/libudev.so.1 0xb6b66000 0xb6cba0d4 Yes () /usr/lib/libcrypto.so.1.1 0xb6b0d9fc 0xb6b0f224 Yes () /lib/libdl.so.2 0xb6af6930 0xb6afbaf0 Yes () /usr/lib/libpciaccess.so.0 0xb6ad73c8 0xb6ae2fb4 Yes () /usr/lib/libdrm.so.2 0xb6a38a10 0xb6abda88 Yes () /usr/lib/libpixman-1.so.0 0xb69fb4a8 0xb6a1d9ec Yes () /usr/lib/libXfont2.so.2 0xb69e68dc 0xb69e76b0 Yes () /usr/lib/libXau.so.6 0xb69d4614 0xb69d49a4 Yes () /usr/lib/libxshmfence.so.1 0xb69bfe44 0xb69c1868 Yes () /usr/lib/libXdmcp.so.6 0xb6955330 0xb698b890 Yes () /lib/libm.so.6 0xb6921d28 0xb693bdbc Yes () /usr/lib/libbsd.so.0 0xb68f57d0 0xb690aa58 Yes () /lib/libpthread.so.0 0xb6797100 0xb68befc0 Yes () /lib/libc.so.6 0xb6759b58 0xb676a858 Yes () /lib/libz.so.1 0xb6735f50 0xb67455dc Yes () /usr/lib/libbz2.so.1.0 0xb671fc60 0xb6722e10 Yes () /usr/lib/libfontenc.so.1 0xb67087f0 0xb670cea8 Yes () /lib/librt.so.1 0xb66e7170 0xb66f559c Yes () /usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/9.2.0/libgcc_s.so.1 0xb6d5cfac 0xb6d60094 Yes /usr/lib/xorg/modules/drivers/hwcomposer_drv.so 0xb65b66a0 0xb663add0 Yes () /usr/lib/libepoxy.so.0 0xb6568918 0xb6569330 Yes /opt/hybris/lib/libhybris-hwcomposerwindow.so.1 0xb6553b3c 0xb6554de0 Yes /opt/hybris/lib/libhybris-eglplatformcommon.so.1 0xb653f804 0xb65402b0 Yes /opt/hybris/lib/libgralloc.so.1 0xb652d534 0xb652d8f8 Yes /opt/hybris/lib/libsync.so.2 0xb65185a0 0xb651aa70 Yes /opt/hybris/lib/libEGL.so.1 0xb65053a0 0xb650562c Yes /opt/hybris/lib/libhardware.so.2 0xb64f0ba4 0xb64f2ad0 Yes /opt/hybris/lib/libGLESv2.so.2 0xb64d2d28 0xb64d8ee8 Yes /opt/hybris/lib/libhybris-common.so.1 0xb63a1710 0xb649bd2c Yes () /usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/9.2.0/libstdc++.so.6 0xb6307090 0xb630b650 Yes /opt/hybris/lib/libhybris/linker/jb.so 0xb37dc368 0xb37ed194 Yes () /usr/lib/xorg/modules/libfb.so 0xb37b77b8 0xb37b7a40 Yes /opt/hybris/lib/libhybris//eglplatform_hwcomposer.so 0xb25e2050 0xb25ea974 Yes () /usr/lib/xorg/modules/input/evdev_drv.so 0xb25b1af0 0xb25b4e1c Yes () /usr/lib/libmtdev.so.1 0xb2594a5c 0xb259a90c Yes () /usr/lib/libevdev.so.2

NotKit commented 4 years ago

So glamor-hybris now loads fine (as in edited log)? I assume you also have drihybris in place?

I don't see any obvious reason for it to fail from the info provided at least. You could build libhybris with --enable-debug --enable-trace and do HYBRIS_LOGGING_LEVEL=debug HYBRIS_TRACE=1 EGL_PLATFORM=x11 ./es2gears_x11

nillerusr commented 4 years ago

https://www.mediafire.com/file/d5gjxa8912jgofu/log.xz/file

nillerusr commented 4 years ago

https://www.mediafire.com/file/d5gjxa8912jgofu/log.xz/file