Closed YuGiOhJCJ closed 7 years ago
The compiler (gcc) compiles per default to armv6 code, these inline assemblies are NEON armv7 instructions, so gcc won't eat them. A possible solution is to pass CFLAGS="-mcpu=cortex-a7 -mfpu=neon-vfpv4"
to ./configure
.
But this is not a complete solution as this breaks the support of the old B/B+ boards and the pi zeros as even if the feature support selector of mesa will not execute this NEON code, gcc might use NEON everywhere (especially at high optimization levels).
The best would be to move all NEON optimized functions in separate files which then get unconditionally compiled with forced NEON support but get only called if NEON is present. This would allow the use of the driver on the old and new boards with a common binary.
With the following flags it works: -O2 -march=armv8-a -mtune=cortex-a53 -mfloat-abi=softfp -mfpu=neon-vfpv4
I am able to build mesa.
So, I have upgraded from the mesa package provided by my operating system to this new one.
Here are the files in the old mesa package:
$ tar tf mesa-11.2.2-arm-1.txz | sort
./
etc/
etc/drirc
install/
install/doinst.sh
install/slack-desc
usr/
usr/bin/
usr/bin/gears
usr/bin/glinfo
usr/bin/glthreads
usr/bin/glxcontexts
usr/bin/glxdemo
usr/bin/glxgears
usr/bin/glxgears_fbconfig
usr/bin/glxheads
usr/bin/glxinfo
usr/bin/glxpbdemo
usr/bin/glxpixmap
usr/doc/
usr/doc/mesa-11.2.2/
usr/doc/mesa-11.2.2/COPYING
usr/doc/mesa-11.2.2/GL3.txt
usr/doc/mesa-11.2.2/html/
usr/doc/mesa-11.2.2/html/application-issues.html
usr/doc/mesa-11.2.2/html/autoconf.html
usr/doc/mesa-11.2.2/html/bugs.html
usr/doc/mesa-11.2.2/html/conform.html
usr/doc/mesa-11.2.2/html/contents.html
usr/doc/mesa-11.2.2/html/debugging.html
usr/doc/mesa-11.2.2/html/developers.html
usr/doc/mesa-11.2.2/html/devinfo.html
usr/doc/mesa-11.2.2/html/dispatch.html
usr/doc/mesa-11.2.2/html/download.html
usr/doc/mesa-11.2.2/html/egl.html
usr/doc/mesa-11.2.2/html/envvars.html
usr/doc/mesa-11.2.2/html/extensions.html
usr/doc/mesa-11.2.2/html/faq.html
usr/doc/mesa-11.2.2/html/helpwanted.html
usr/doc/mesa-11.2.2/html/index.html
usr/doc/mesa-11.2.2/html/install.html
usr/doc/mesa-11.2.2/html/intro.html
usr/doc/mesa-11.2.2/html/license.html
usr/doc/mesa-11.2.2/html/lists.html
usr/doc/mesa-11.2.2/html/llvmpipe.html
usr/doc/mesa-11.2.2/html/mangling.html
usr/doc/mesa-11.2.2/html/opengles.html
usr/doc/mesa-11.2.2/html/osmesa.html
usr/doc/mesa-11.2.2/html/perf.html
usr/doc/mesa-11.2.2/html/postprocess.html
usr/doc/mesa-11.2.2/html/precompiled.html
usr/doc/mesa-11.2.2/html/repository.html
usr/doc/mesa-11.2.2/html/shading.html
usr/doc/mesa-11.2.2/html/sourcedocs.html
usr/doc/mesa-11.2.2/html/sourcetree.html
usr/doc/mesa-11.2.2/html/systems.html
usr/doc/mesa-11.2.2/html/thanks.html
usr/doc/mesa-11.2.2/html/utilities.html
usr/doc/mesa-11.2.2/html/versions.html
usr/doc/mesa-11.2.2/html/viewperf.html
usr/doc/mesa-11.2.2/html/vmware-guest.html
usr/doc/mesa-11.2.2/html/webmaster.html
usr/doc/mesa-11.2.2/html/xlibdriver.html
usr/doc/mesa-11.2.2/README.UVD
usr/doc/mesa-11.2.2/README.VCE
usr/doc/mesa-11.2.2/README.WIN32
usr/include/
usr/include/d3dadapter/
usr/include/d3dadapter/d3dadapter9.h
usr/include/d3dadapter/drm.h
usr/include/d3dadapter/present.h
usr/include/EGL/
usr/include/EGL/eglextchromium.h
usr/include/EGL/eglext.h
usr/include/EGL/egl.h
usr/include/EGL/eglmesaext.h
usr/include/EGL/eglplatform.h
usr/include/gbm.h
usr/include/GL/
usr/include/GLES/
usr/include/GLES2/
usr/include/GLES2/gl2ext.h
usr/include/GLES2/gl2.h
usr/include/GLES2/gl2platform.h
usr/include/GLES3/
usr/include/GLES3/gl31.h
usr/include/GLES3/gl3ext.h
usr/include/GLES3/gl3.h
usr/include/GLES3/gl3platform.h
usr/include/GLES/egl.h
usr/include/GLES/glext.h
usr/include/GLES/gl.h
usr/include/GLES/glplatform.h
usr/include/GL/glcorearb.h
usr/include/GL/glext.h
usr/include/GL/gl.h
usr/include/GL/gl_mangle.h
usr/include/GL/glxext.h
usr/include/GL/glx.h
usr/include/GL/glx_mangle.h
usr/include/GL/internal/
usr/include/GL/internal/dri_interface.h
usr/include/GL/osmesa.h
usr/include/GL/wglext.h
usr/include/KHR/
usr/include/KHR/khrplatform.h
usr/include/xa_composite.h
usr/include/xa_context.h
usr/include/xa_tracker.h
usr/lib/
usr/lib/d3d/
usr/lib/d3d/d3dadapter9.la
usr/lib/d3d/d3dadapter9.so.1.0.0
usr/lib/dri/
usr/lib/dri/gallium_drv_video.la
usr/lib/dri/gallium_drv_video.so
usr/lib/libEGL.la
usr/lib/libEGL.so.1.0.0
usr/lib/libgbm.la
usr/lib/libgbm.so.1.0.0
usr/lib/libglapi.la
usr/lib/libglapi.so.0.0.0
usr/lib/libGLESv1_CM.la
usr/lib/libGLESv1_CM.so.1.1.0
usr/lib/libGLESv2.la
usr/lib/libGLESv2.so.2.0.0
usr/lib/libGL.la
usr/lib/libGL.so.1.2.0
usr/lib/libOSMesa.la
usr/lib/libOSMesa.so.8.0.0
usr/lib/libxatracker.la
usr/lib/libxatracker.so.2.3.0
usr/lib/libXvMCnouveau.so.1.0.0
usr/lib/libXvMCr600.so.1.0.0
usr/lib/pkgconfig/
usr/lib/pkgconfig/d3d.pc
usr/lib/pkgconfig/dri.pc
usr/lib/pkgconfig/egl.pc
usr/lib/pkgconfig/gbm.pc
usr/lib/pkgconfig/glesv1_cm.pc
usr/lib/pkgconfig/glesv2.pc
usr/lib/pkgconfig/gl.pc
usr/lib/pkgconfig/osmesa.pc
usr/lib/pkgconfig/xatracker.pc
usr/lib/vdpau/
usr/lib/vdpau/libvdpau_nouveau.so.1.0.0
usr/lib/vdpau/libvdpau_r300.so.1.0.0
usr/lib/vdpau/libvdpau_r600.so.1.0.0
usr/lib/xorg/
usr/lib/xorg/modules/
usr/lib/xorg/modules/dri/
usr/lib/xorg/modules/dri/kms_swrast_dri.so
usr/lib/xorg/modules/dri/nouveau_dri.so
usr/lib/xorg/modules/dri/nouveau_vieux_dri.so
usr/lib/xorg/modules/dri/r200_dri.so
usr/lib/xorg/modules/dri/r300_dri.so
usr/lib/xorg/modules/dri/r600_dri.so
usr/lib/xorg/modules/dri/radeon_dri.so
usr/lib/xorg/modules/dri/swrast_dri.so
usr/lib/xorg/modules/dri/vmwgfx_dri.so
Here are the files in the new mesa package:
$ tar tf mesa-raspberrypi-a363fa0c990284657df178b73e68d268c25069cf-armv7l-20170607210353_ygo.txz | sort
./
install/
install/doinst.sh
install/slack-desc
usr/
usr/etc/
usr/etc/drirc
usr/include/
usr/include/EGL/
usr/include/EGL/eglextchromium.h
usr/include/EGL/eglext.h
usr/include/EGL/egl.h
usr/include/EGL/eglmesaext.h
usr/include/EGL/eglplatform.h
usr/include/gbm.h
usr/include/GL/
usr/include/GLES/
usr/include/GLES2/
usr/include/GLES2/gl2ext.h
usr/include/GLES2/gl2.h
usr/include/GLES2/gl2platform.h
usr/include/GLES3/
usr/include/GLES3/gl31.h
usr/include/GLES3/gl32.h
usr/include/GLES3/gl3ext.h
usr/include/GLES3/gl3.h
usr/include/GLES3/gl3platform.h
usr/include/GLES/egl.h
usr/include/GLES/glext.h
usr/include/GLES/gl.h
usr/include/GLES/glplatform.h
usr/include/GL/glcorearb.h
usr/include/GL/glext.h
usr/include/GL/gl.h
usr/include/GL/gl_mangle.h
usr/include/GL/glxext.h
usr/include/GL/glx.h
usr/include/GL/glx_mangle.h
usr/include/GL/internal/
usr/include/GL/internal/dri_interface.h
usr/include/KHR/
usr/include/KHR/khrplatform.h
usr/lib/
usr/lib/dri/
usr/lib/dri/vc4_dri.so
usr/lib/libEGL.la
usr/lib/libEGL.so.1.0.0
usr/lib/libgbm.la
usr/lib/libgbm.so.1.0.0
usr/lib/libglapi.la
usr/lib/libglapi.so.0.0.0
usr/lib/libGLESv1_CM.la
usr/lib/libGLESv1_CM.so.1.1.0
usr/lib/libGLESv2.la
usr/lib/libGLESv2.so.2.0.0
usr/lib/libGL.la
usr/lib/libGL.so.1.2.0
usr/lib/pkgconfig/
usr/lib/pkgconfig/dri.pc
usr/lib/pkgconfig/egl.pc
usr/lib/pkgconfig/gbm.pc
usr/lib/pkgconfig/glesv1_cm.pc
usr/lib/pkgconfig/glesv2.pc
usr/lib/pkgconfig/gl.pc
Unfortunately, here is what happens when I start glxgears
:
$ glxgears
Error: couldn't get an RGB, Double-buffered visual
I think that the problem is that Xorg does not load the VC4 DRI driver:
$ cat /var/log/Xorg.0.log
[ 467.594]
X.Org X Server 1.18.3
Release Date: 2016-04-04
[ 467.595] X Protocol Version 11, Revision 0
[ 467.595] Build Operating System: Slackware 14.2 Slackware Linux Project
[ 467.595] Current Operating System: Linux raspberrypi 4.9.24-raspberrypi #1 SMP Tue Apr 25 16:41:02 BST 2017 armv7l
[ 467.595] Kernel command line: 8250.nr_uarts=0 dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1920 bcm2708_fb.fbheight=1080 bcm2709.boardrev=0xa02082 bcm2709.serial=0x9ae58cec smsc95xx.macaddr=B8:27:EB:E5:8C:EC bcm2708_fb.fbswap=1 bcm2709.uart_clock=48000000 vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000 console=ttyS0,115200 kgdboc=ttyS0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait
[ 467.595] Build Date: 17 April 2016 08:31:45AM
[ 467.595]
[ 467.595] Current version of pixman: 0.34.0
[ 467.595] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 467.595] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 467.596] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Jun 8 06:05:51 2017
[ 467.615] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 467.615] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 467.621] (==) No Layout section. Using the first Screen section.
[ 467.621] (==) No screen section available. Using defaults.
[ 467.621] (**) |-->Screen "Default Screen Section" (0)
[ 467.621] (**) | |-->Monitor "<default monitor>"
[ 467.627] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 467.627] (==) Automatically adding devices
[ 467.627] (==) Automatically enabling devices
[ 467.628] (==) Automatically adding GPU devices
[ 467.634] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 467.634] (WW) The directory "/usr/share/fonts/local" does not exist.
[ 467.634] Entry deleted from font path.
[ 467.634] (WW) The directory "/usr/share/fonts/CID" does not exist.
[ 467.634] Entry deleted from font path.
[ 467.634] (==) FontPath set to:
/usr/share/fonts/TTF,
/usr/share/fonts/OTF,
/usr/share/fonts/Type1,
/usr/share/fonts/misc,
/usr/share/fonts/75dpi/:unscaled,
/usr/share/fonts/100dpi/:unscaled,
/usr/share/fonts/75dpi,
/usr/share/fonts/100dpi,
/usr/share/fonts/cyrillic
[ 467.634] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 467.634] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 467.635] (II) Loader magic: 0x1e72c8
[ 467.635] (II) Module ABI versions:
[ 467.635] X.Org ANSI C Emulation: 0.4
[ 467.635] X.Org Video Driver: 20.0
[ 467.635] X.Org XInput driver : 22.1
[ 467.635] X.Org Server Extension : 9.0
[ 467.636] (II) no primary bus or device found
[ 467.636] (II) LoadModule: "glx"
[ 467.657] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 467.678] (II) Module glx: vendor="X.Org Foundation"
[ 467.679] compiled for 1.18.3, module version = 1.0.0
[ 467.679] ABI class: X.Org Server Extension, version 9.0
[ 467.679] (==) AIGLX enabled
[ 467.679] (==) Matched modesetting as autoconfigured driver 0
[ 467.679] (==) Matched fbdev as autoconfigured driver 1
[ 467.679] (==) Assigned the driver to the xf86ConfigLayout
[ 467.679] (II) LoadModule: "modesetting"
[ 467.681] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 467.686] (II) Module modesetting: vendor="X.Org Foundation"
[ 467.686] compiled for 1.18.3, module version = 1.18.3
[ 467.686] Module class: X.Org Video Driver
[ 467.686] ABI class: X.Org Video Driver, version 20.0
[ 467.686] (II) LoadModule: "fbdev"
[ 467.687] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[ 467.690] (II) Module fbdev: vendor="X.Org Foundation"
[ 467.690] compiled for 1.18.3, module version = 0.4.4
[ 467.690] Module class: X.Org Video Driver
[ 467.690] ABI class: X.Org Video Driver, version 20.0
[ 467.690] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 467.690] (II) FBDEV: driver for framebuffer: fbdev
[ 467.690] (--) using VT number 7
[ 467.730] (WW) Falling back to old probe method for modesetting
[ 467.730] (EE) open /dev/dri/card0: No such file or directory
[ 467.730] (WW) Falling back to old probe method for fbdev
[ 467.730] (II) Loading sub module "fbdevhw"
[ 467.730] (II) LoadModule: "fbdevhw"
[ 467.731] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[ 467.735] (II) Module fbdevhw: vendor="X.Org Foundation"
[ 467.735] compiled for 1.18.3, module version = 0.0.2
[ 467.735] ABI class: X.Org Video Driver, version 20.0
[ 467.735] (II) FBDEV(0): using default device
[ 467.735] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[ 467.735] (II) FBDEV(0): Creating default Display subsection in Screen section
"Default Screen Section" for depth/fbbpp 24/32
[ 467.735] (==) FBDEV(0): Depth 24, (==) framebuffer bpp 32
[ 467.736] (==) FBDEV(0): RGB weight 888
[ 467.736] (==) FBDEV(0): Default visual is TrueColor
[ 467.736] (==) FBDEV(0): Using gamma correction (1.0, 1.0, 1.0)
[ 467.736] (II) FBDEV(0): hardware: BCM2708 FB (video memory: 8100kB)
[ 467.736] (II) FBDEV(0): checking modes against framebuffer device...
[ 467.736] (II) FBDEV(0): checking modes against monitor...
[ 467.736] (--) FBDEV(0): Virtual size is 1920x1080 (pitch 1920)
[ 467.736] (**) FBDEV(0): Built-in mode "current"
[ 467.736] (==) FBDEV(0): DPI set to (96, 96)
[ 467.736] (II) Loading sub module "fb"
[ 467.736] (II) LoadModule: "fb"
[ 467.737] (II) Loading /usr/lib/xorg/modules/libfb.so
[ 467.744] (II) Module fb: vendor="X.Org Foundation"
[ 467.744] compiled for 1.18.3, module version = 1.0.0
[ 467.744] ABI class: X.Org ANSI C Emulation, version 0.4
[ 467.744] (**) FBDEV(0): using shadow framebuffer
[ 467.744] (II) Loading sub module "shadow"
[ 467.744] (II) LoadModule: "shadow"
[ 467.744] (II) Loading /usr/lib/xorg/modules/libshadow.so
[ 467.747] (II) Module shadow: vendor="X.Org Foundation"
[ 467.747] compiled for 1.18.3, module version = 1.1.0
[ 467.747] ABI class: X.Org ANSI C Emulation, version 0.4
[ 467.747] (II) UnloadModule: "modesetting"
[ 467.747] (II) Unloading modesetting
[ 467.748] (==) Depth 24 pixmap format is 32 bpp
[ 467.771] (==) FBDEV(0): Backing store enabled
[ 467.776] (==) FBDEV(0): DPMS enabled
[ 467.776] (==) RandR enabled
[ 467.783] (II) AIGLX: Screen 0 is not DRI2 capable
[ 467.783] (EE) AIGLX: reverting to software rendering
[ 467.783] (EE) AIGLX error: dlopen of /usr/lib/xorg/modules/dri/swrast_dri.so failed (/usr/lib/xorg/modules/dri/swrast_dri.so: cannot open shared object file: No such file or directory)
[ 467.783] (EE) GLX: could not load software renderer
[ 467.783] (II) GLX: no usable GL providers found for screen 0
[ 505.652] (II) config/udev: Adding input device HID 1ddd:2819 (/dev/input/mouse0)
[ 505.653] (II) No input driver specified, ignoring this device.
[ 505.653] (II) This device may have been added with another device file.
[ 505.736] (II) config/udev: Adding input device HID 1ddd:2819 (/dev/input/event0)
[ 505.737] (**) HID 1ddd:2819: Applying InputClass "evdev keyboard catchall"
[ 505.737] (**) HID 1ddd:2819: Applying InputClass "keyboard-all"
[ 505.737] (**) HID 1ddd:2819: Applying InputClass "keyboard-all"
[ 505.737] (II) LoadModule: "evdev"
[ 505.738] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
[ 505.751] (II) Module evdev: vendor="X.Org Foundation"
[ 505.751] compiled for 1.18.3, module version = 2.10.3
[ 505.751] Module class: X.Org XInput Driver
[ 505.751] ABI class: X.Org XInput driver, version 22.1
[ 505.751] (II) Using input driver 'evdev' for 'HID 1ddd:2819'
[ 505.751] (**) HID 1ddd:2819: always reports core events
[ 505.751] (**) evdev: HID 1ddd:2819: Device: "/dev/input/event0"
[ 505.752] (--) evdev: HID 1ddd:2819: Vendor 0x1ddd Product 0x2819
[ 505.752] (--) evdev: HID 1ddd:2819: Found keys
[ 505.752] (II) evdev: HID 1ddd:2819: Configuring as keyboard
[ 505.752] (**) Option "config_info" "udev:/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.0/0003:1DDD:2819.0001/input/input0/event0"
[ 505.752] (II) XINPUT: Adding extended input device "HID 1ddd:2819" (type: KEYBOARD, id 6)
[ 505.752] (**) Option "xkb_rules" "evdev"
[ 505.752] (**) Option "xkb_layout" "fr"
[ 505.752] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
[ 505.964] (II) config/udev: Adding input device HID 1ddd:2819 (/dev/input/event1)
[ 505.964] (**) HID 1ddd:2819: Applying InputClass "evdev pointer catchall"
[ 505.964] (**) HID 1ddd:2819: Applying InputClass "evdev keyboard catchall"
[ 505.964] (**) HID 1ddd:2819: Applying InputClass "keyboard-all"
[ 505.965] (**) HID 1ddd:2819: Applying InputClass "keyboard-all"
[ 505.965] (II) Using input driver 'evdev' for 'HID 1ddd:2819'
[ 505.965] (**) HID 1ddd:2819: always reports core events
[ 505.965] (**) evdev: HID 1ddd:2819: Device: "/dev/input/event1"
[ 505.965] (--) evdev: HID 1ddd:2819: Vendor 0x1ddd Product 0x2819
[ 505.965] (--) evdev: HID 1ddd:2819: Found 9 mouse buttons
[ 505.965] (--) evdev: HID 1ddd:2819: Found scroll wheel(s)
[ 505.965] (--) evdev: HID 1ddd:2819: Found relative axes
[ 505.965] (--) evdev: HID 1ddd:2819: Found x and y relative axes
[ 505.965] (--) evdev: HID 1ddd:2819: Found absolute axes
[ 505.965] (II) evdev: HID 1ddd:2819: Forcing absolute x/y axes to exist.
[ 505.966] (--) evdev: HID 1ddd:2819: Found keys
[ 505.966] (II) evdev: HID 1ddd:2819: Configuring as mouse
[ 505.966] (II) evdev: HID 1ddd:2819: Configuring as keyboard
[ 505.966] (II) evdev: HID 1ddd:2819: Adding scrollwheel support
[ 505.966] (**) evdev: HID 1ddd:2819: YAxisMapping: buttons 4 and 5
[ 505.966] (**) evdev: HID 1ddd:2819: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[ 505.966] (**) Option "config_info" "udev:/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.1/0003:1DDD:2819.0002/input/input1/event1"
[ 505.966] (II) XINPUT: Adding extended input device "HID 1ddd:2819" (type: KEYBOARD, id 7)
[ 505.966] (**) Option "xkb_rules" "evdev"
[ 505.966] (**) Option "xkb_layout" "fr"
[ 505.966] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
[ 505.968] (II) evdev: HID 1ddd:2819: initialized for relative axes.
[ 505.968] (WW) evdev: HID 1ddd:2819: ignoring absolute axes.
[ 505.969] (**) HID 1ddd:2819: (accel) keeping acceleration scheme 1
[ 505.969] (**) HID 1ddd:2819: (accel) acceleration profile 0
[ 505.969] (**) HID 1ddd:2819: (accel) acceleration factor: 2.000
[ 505.969] (**) HID 1ddd:2819: (accel) acceleration threshold: 4
[ 516.416] (II) config/udev: Adding input device Chicony USB Keyboard (/dev/input/event3)
[ 516.417] (**) Chicony USB Keyboard: Applying InputClass "evdev keyboard catchall"
[ 516.417] (**) Chicony USB Keyboard: Applying InputClass "keyboard-all"
[ 516.417] (**) Chicony USB Keyboard: Applying InputClass "keyboard-all"
[ 516.417] (II) Using input driver 'evdev' for 'Chicony USB Keyboard'
[ 516.417] (**) Chicony USB Keyboard: always reports core events
[ 516.417] (**) evdev: Chicony USB Keyboard: Device: "/dev/input/event3"
[ 516.417] (--) evdev: Chicony USB Keyboard: Vendor 0x4f2 Product 0x402
[ 516.417] (--) evdev: Chicony USB Keyboard: Found keys
[ 516.417] (II) evdev: Chicony USB Keyboard: Configuring as keyboard
[ 516.418] (**) Option "config_info" "udev:/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.1/0003:04F2:0402.0004/input/input3/event3"
[ 516.418] (II) XINPUT: Adding extended input device "Chicony USB Keyboard" (type: KEYBOARD, id 8)
[ 516.418] (**) Option "xkb_rules" "evdev"
[ 516.418] (**) Option "xkb_layout" "fr"
[ 516.418] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
[ 516.422] (II) config/udev: Adding input device Chicony USB Keyboard (/dev/input/event2)
[ 516.422] (**) Chicony USB Keyboard: Applying InputClass "evdev keyboard catchall"
[ 516.422] (**) Chicony USB Keyboard: Applying InputClass "keyboard-all"
[ 516.422] (**) Chicony USB Keyboard: Applying InputClass "keyboard-all"
[ 516.422] (II) Using input driver 'evdev' for 'Chicony USB Keyboard'
[ 516.423] (**) Chicony USB Keyboard: always reports core events
[ 516.423] (**) evdev: Chicony USB Keyboard: Device: "/dev/input/event2"
[ 516.423] (--) evdev: Chicony USB Keyboard: Vendor 0x4f2 Product 0x402
[ 516.423] (--) evdev: Chicony USB Keyboard: Found keys
[ 516.423] (II) evdev: Chicony USB Keyboard: Configuring as keyboard
[ 516.423] (**) Option "config_info" "udev:/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.0/0003:04F2:0402.0003/input/input2/event2"
[ 516.423] (II) XINPUT: Adding extended input device "Chicony USB Keyboard" (type: KEYBOARD, id 9)
[ 516.423] (**) Option "xkb_rules" "evdev"
[ 516.423] (**) Option "xkb_layout" "fr"
[ 516.423] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
[ 556.043] (II) config/udev: removing device Chicony USB Keyboard
[ 556.090] (II) evdev: Chicony USB Keyboard: Close
[ 556.090] (II) UnloadModule: "evdev"
[ 556.132] (II) config/udev: removing device Chicony USB Keyboard
[ 556.170] (II) evdev: Chicony USB Keyboard: Close
[ 556.170] (II) UnloadModule: "evdev"
[ 556.983] (II) config/udev: removing device HID 1ddd:2819
[ 557.020] (II) evdev: HID 1ddd:2819: Close
[ 557.020] (II) UnloadModule: "evdev"
[ 557.122] (II) config/udev: removing device HID 1ddd:2819
[ 557.170] (II) evdev: HID 1ddd:2819: Close
[ 557.171] (II) UnloadModule: "evdev"
It tries to load the /usr/lib/xorg/modules/dri/swrast_dri.so
file instead of /usr/lib/dri/vc4_dri.so
.
It makes sense as I have not configured my RPi3B to load the VC4 driver.
So, I have modified the /boot/config.txt
file by adding this line:
dtoverlay=vc4-kms-v3d
Then I have rebooted the RPi3B.
This time, Xorg is looking for the VC4 DRI driver but it does not find it:
$ cat /var/log/Xorg.0.log
[ 66.460]
X.Org X Server 1.18.3
Release Date: 2016-04-04
[ 66.461] X Protocol Version 11, Revision 0
[ 66.461] Build Operating System: Slackware 14.2 Slackware Linux Project
[ 66.461] Current Operating System: Linux raspberrypi 4.9.24-raspberrypi #1 SMP Tue Apr 25 16:41:02 BST 2017 armv7l
[ 66.461] Kernel command line: 8250.nr_uarts=0 cma=256M@256M dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1920 bcm2708_fb.fbheight=1080 bcm2709.boardrev=0xa02082 bcm2709.serial=0x9ae58cec smsc95xx.macaddr=B8:27:EB:E5:8C:EC bcm2708_fb.fbswap=1 bcm2709.uart_clock=48000000 vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000 console=ttyS0,115200 kgdboc=ttyS0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait
[ 66.462] Build Date: 17 April 2016 08:31:45AM
[ 66.462]
[ 66.462] Current version of pixman: 0.34.0
[ 66.462] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 66.462] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 66.480] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Jun 8 06:14:46 2017
[ 66.498] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 66.498] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 66.505] (==) No Layout section. Using the first Screen section.
[ 66.505] (==) No screen section available. Using defaults.
[ 66.505] (**) |-->Screen "Default Screen Section" (0)
[ 66.505] (**) | |-->Monitor "<default monitor>"
[ 66.511] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 66.511] (==) Automatically adding devices
[ 66.511] (==) Automatically enabling devices
[ 66.511] (==) Automatically adding GPU devices
[ 66.517] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 66.517] (WW) The directory "/usr/share/fonts/local" does not exist.
[ 66.517] Entry deleted from font path.
[ 66.518] (WW) The directory "/usr/share/fonts/CID" does not exist.
[ 66.518] Entry deleted from font path.
[ 66.518] (==) FontPath set to:
/usr/share/fonts/TTF,
/usr/share/fonts/OTF,
/usr/share/fonts/Type1,
/usr/share/fonts/misc,
/usr/share/fonts/75dpi/:unscaled,
/usr/share/fonts/100dpi/:unscaled,
/usr/share/fonts/75dpi,
/usr/share/fonts/100dpi,
/usr/share/fonts/cyrillic
[ 66.518] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 66.518] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 66.519] (II) Loader magic: 0x1e72c8
[ 66.519] (II) Module ABI versions:
[ 66.519] X.Org ANSI C Emulation: 0.4
[ 66.519] X.Org Video Driver: 20.0
[ 66.519] X.Org XInput driver : 22.1
[ 66.519] X.Org Server Extension : 9.0
[ 66.521] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 66.522] (II) no primary bus or device found
[ 66.522] falling back to /sys/devices/platform/soc/soc:gpu/drm/card0
[ 66.522] (II) LoadModule: "glx"
[ 66.544] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 66.564] (II) Module glx: vendor="X.Org Foundation"
[ 66.565] compiled for 1.18.3, module version = 1.0.0
[ 66.565] ABI class: X.Org Server Extension, version 9.0
[ 66.565] (==) AIGLX enabled
[ 66.565] (==) Matched modesetting as autoconfigured driver 0
[ 66.565] (==) Matched fbdev as autoconfigured driver 1
[ 66.565] (==) Assigned the driver to the xf86ConfigLayout
[ 66.565] (II) LoadModule: "modesetting"
[ 66.567] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 66.571] (II) Module modesetting: vendor="X.Org Foundation"
[ 66.572] compiled for 1.18.3, module version = 1.18.3
[ 66.572] Module class: X.Org Video Driver
[ 66.572] ABI class: X.Org Video Driver, version 20.0
[ 66.572] (II) LoadModule: "fbdev"
[ 66.573] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[ 66.575] (II) Module fbdev: vendor="X.Org Foundation"
[ 66.575] compiled for 1.18.3, module version = 0.4.4
[ 66.576] Module class: X.Org Video Driver
[ 66.576] ABI class: X.Org Video Driver, version 20.0
[ 66.576] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 66.576] (II) FBDEV: driver for framebuffer: fbdev
[ 66.576] (--) using VT number 7
[ 66.585] (II) modeset(0): using drv /dev/dri/card0
[ 66.586] (WW) Falling back to old probe method for fbdev
[ 66.586] (II) Loading sub module "fbdevhw"
[ 66.586] (II) LoadModule: "fbdevhw"
[ 66.586] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[ 66.590] (II) Module fbdevhw: vendor="X.Org Foundation"
[ 66.590] compiled for 1.18.3, module version = 0.0.2
[ 66.590] ABI class: X.Org Video Driver, version 20.0
[ 66.591] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[ 66.591] (II) modeset(0): Creating default Display subsection in Screen section
"Default Screen Section" for depth/fbbpp 24/32
[ 66.591] (==) modeset(0): Depth 24, (==) framebuffer bpp 32
[ 66.591] (==) modeset(0): RGB weight 888
[ 66.591] (==) modeset(0): Default visual is TrueColor
[ 66.592] (II) Loading sub module "glamoregl"
[ 66.592] (II) LoadModule: "glamoregl"
[ 66.592] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[ 66.642] (II) Module glamoregl: vendor="X.Org Foundation"
[ 66.642] compiled for 1.18.3, module version = 1.0.0
[ 66.642] ABI class: X.Org ANSI C Emulation, version 0.4
[ 66.642] (II) glamor: OpenGL accelerated X.org driver based.
[ 66.862] (II) glamor: EGL version 1.4 (DRI2):
[ 66.913] (II) modeset(0): glamor initialized
[ 66.916] (II) modeset(0): Output HDMI-1 has no monitor section
[ 66.916] (II) modeset(0): Output Composite-1 has no monitor section
[ 66.916] (II) modeset(0): Output DSI-1 has no monitor section
[ 66.919] (II) modeset(0): EDID for output HDMI-1
[ 66.919] (II) modeset(0): EDID for output Composite-1
[ 66.920] (II) modeset(0): Printing probed modes for output Composite-1
[ 66.920] (II) modeset(0): Modeline "720x480"x31.3 13.50 720 734 798 858 480 483 486 502 interlace (15.7 kHz e)
[ 66.920] (II) modeset(0): EDID for output DSI-1
[ 66.920] (II) modeset(0): Output HDMI-1 disconnected
[ 66.920] (II) modeset(0): Output Composite-1 disconnected
[ 66.920] (II) modeset(0): Output DSI-1 disconnected
[ 66.920] (WW) modeset(0): No outputs definitely connected, trying again...
[ 66.920] (II) modeset(0): Output HDMI-1 disconnected
[ 66.920] (II) modeset(0): Output Composite-1 connected
[ 66.920] (II) modeset(0): Output DSI-1 disconnected
[ 66.920] (II) modeset(0): Using sloppy heuristic for initial modes
[ 66.920] (II) modeset(0): Output Composite-1 using initial mode 720x480 +0+0
[ 66.921] (II) modeset(0): Using default gamma of (1.0, 1.0, 1.0) unless otherwise stated.
[ 66.921] (==) modeset(0): DPI set to (96, 96)
[ 66.921] (II) Loading sub module "fb"
[ 66.921] (II) LoadModule: "fb"
[ 66.921] (II) Loading /usr/lib/xorg/modules/libfb.so
[ 66.931] (II) Module fb: vendor="X.Org Foundation"
[ 66.931] compiled for 1.18.3, module version = 1.0.0
[ 66.931] ABI class: X.Org ANSI C Emulation, version 0.4
[ 66.931] (II) UnloadModule: "fbdev"
[ 66.931] (II) Unloading fbdev
[ 66.931] (II) UnloadSubModule: "fbdevhw"
[ 66.931] (II) Unloading fbdevhw
[ 66.932] (==) Depth 24 pixmap format is 32 bpp
[ 67.326] (==) modeset(0): Backing store enabled
[ 67.326] (==) modeset(0): Silken mouse enabled
[ 67.332] (II) modeset(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[ 67.336] (==) modeset(0): DPMS enabled
[ 67.336] (II) modeset(0): [DRI2] Setup complete
[ 67.336] (II) modeset(0): [DRI2] DRI driver: vc4
[ 67.337] (II) modeset(0): [DRI2] VDPAU driver: vc4
[ 67.353] (--) RandR disabled
[ 67.362] (EE) AIGLX error: dlopen of /usr/lib/xorg/modules/dri/vc4_dri.so failed (/usr/lib/xorg/modules/dri/vc4_dri.so: cannot open shared object file: No such file or directory)
[ 67.362] (EE) AIGLX: reverting to software rendering
[ 67.362] (EE) AIGLX error: dlopen of /usr/lib/xorg/modules/dri/swrast_dri.so failed (/usr/lib/xorg/modules/dri/swrast_dri.so: cannot open shared object file: No such file or directory)
[ 67.362] (EE) GLX: could not load software renderer
[ 67.362] (II) GLX: no usable GL providers found for screen 0
[ 67.364] (II) modeset(0): Setting screen physical size to 190 x 127
It makes sense as the DRI driver is in the wrong directory: /usr/lib/dri
instead of /usr/lib/xorg/modules/dri
.
So, I did a symbolic link:
sudo ln -s /usr/lib/dri /usr/lib/xorg/modules/dri
And now, Xorg loads correctly the VC4 driver:
$ cat /var/log/Xorg.0.log
[ 277.735]
X.Org X Server 1.18.3
Release Date: 2016-04-04
[ 277.735] X Protocol Version 11, Revision 0
[ 277.735] Build Operating System: Slackware 14.2 Slackware Linux Project
[ 277.736] Current Operating System: Linux raspberrypi 4.9.24-raspberrypi #1 SMP Tue Apr 25 16:41:02 BST 2017 armv7l
[ 277.736] Kernel command line: 8250.nr_uarts=0 cma=256M@256M dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1920 bcm2708_fb.fbheight=1080 bcm2709.boardrev=0xa02082 bcm2709.serial=0x9ae58cec smsc95xx.macaddr=B8:27:EB:E5:8C:EC bcm2708_fb.fbswap=1 bcm2709.uart_clock=48000000 vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000 console=ttyS0,115200 kgdboc=ttyS0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait
[ 277.736] Build Date: 17 April 2016 08:31:45AM
[ 277.736]
[ 277.736] Current version of pixman: 0.34.0
[ 277.737] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 277.737] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 277.739] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Jun 8 06:18:17 2017
[ 277.739] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 277.740] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 277.742] (==) No Layout section. Using the first Screen section.
[ 277.742] (==) No screen section available. Using defaults.
[ 277.742] (**) |-->Screen "Default Screen Section" (0)
[ 277.742] (**) | |-->Monitor "<default monitor>"
[ 277.743] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 277.743] (==) Automatically adding devices
[ 277.743] (==) Automatically enabling devices
[ 277.743] (==) Automatically adding GPU devices
[ 277.743] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 277.744] (WW) The directory "/usr/share/fonts/local" does not exist.
[ 277.744] Entry deleted from font path.
[ 277.744] (WW) The directory "/usr/share/fonts/CID" does not exist.
[ 277.744] Entry deleted from font path.
[ 277.744] (==) FontPath set to:
/usr/share/fonts/TTF,
/usr/share/fonts/OTF,
/usr/share/fonts/Type1,
/usr/share/fonts/misc,
/usr/share/fonts/75dpi/:unscaled,
/usr/share/fonts/100dpi/:unscaled,
/usr/share/fonts/75dpi,
/usr/share/fonts/100dpi,
/usr/share/fonts/cyrillic
[ 277.744] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 277.744] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 277.744] (II) Loader magic: 0x1e72c8
[ 277.744] (II) Module ABI versions:
[ 277.744] X.Org ANSI C Emulation: 0.4
[ 277.744] X.Org Video Driver: 20.0
[ 277.744] X.Org XInput driver : 22.1
[ 277.744] X.Org Server Extension : 9.0
[ 277.746] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 277.747] (II) no primary bus or device found
[ 277.747] falling back to /sys/devices/platform/soc/soc:gpu/drm/card0
[ 277.747] (II) LoadModule: "glx"
[ 277.750] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 277.758] (II) Module glx: vendor="X.Org Foundation"
[ 277.758] compiled for 1.18.3, module version = 1.0.0
[ 277.758] ABI class: X.Org Server Extension, version 9.0
[ 277.758] (==) AIGLX enabled
[ 277.758] (==) Matched modesetting as autoconfigured driver 0
[ 277.758] (==) Matched fbdev as autoconfigured driver 1
[ 277.759] (==) Assigned the driver to the xf86ConfigLayout
[ 277.759] (II) LoadModule: "modesetting"
[ 277.761] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 277.761] (II) Module modesetting: vendor="X.Org Foundation"
[ 277.761] compiled for 1.18.3, module version = 1.18.3
[ 277.761] Module class: X.Org Video Driver
[ 277.761] ABI class: X.Org Video Driver, version 20.0
[ 277.761] (II) LoadModule: "fbdev"
[ 277.763] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[ 277.763] (II) Module fbdev: vendor="X.Org Foundation"
[ 277.763] compiled for 1.18.3, module version = 0.4.4
[ 277.763] Module class: X.Org Video Driver
[ 277.764] ABI class: X.Org Video Driver, version 20.0
[ 277.764] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 277.764] (II) FBDEV: driver for framebuffer: fbdev
[ 277.764] (--) using VT number 7
[ 277.772] (II) modeset(0): using drv /dev/dri/card0
[ 277.772] (WW) Falling back to old probe method for fbdev
[ 277.772] (II) Loading sub module "fbdevhw"
[ 277.772] (II) LoadModule: "fbdevhw"
[ 277.773] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[ 277.773] (II) Module fbdevhw: vendor="X.Org Foundation"
[ 277.773] compiled for 1.18.3, module version = 0.0.2
[ 277.773] ABI class: X.Org Video Driver, version 20.0
[ 277.773] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[ 277.774] (II) modeset(0): Creating default Display subsection in Screen section
"Default Screen Section" for depth/fbbpp 24/32
[ 277.774] (==) modeset(0): Depth 24, (==) framebuffer bpp 32
[ 277.774] (==) modeset(0): RGB weight 888
[ 277.774] (==) modeset(0): Default visual is TrueColor
[ 277.774] (II) Loading sub module "glamoregl"
[ 277.774] (II) LoadModule: "glamoregl"
[ 277.775] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[ 277.814] (II) Module glamoregl: vendor="X.Org Foundation"
[ 277.814] compiled for 1.18.3, module version = 1.0.0
[ 277.814] ABI class: X.Org ANSI C Emulation, version 0.4
[ 277.814] (II) glamor: OpenGL accelerated X.org driver based.
[ 277.891] (II) glamor: EGL version 1.4 (DRI2):
[ 277.900] (II) modeset(0): glamor initialized
[ 277.903] (II) modeset(0): Output HDMI-1 has no monitor section
[ 277.904] (II) modeset(0): Output Composite-1 has no monitor section
[ 277.904] (II) modeset(0): Output DSI-1 has no monitor section
[ 277.906] (II) modeset(0): EDID for output HDMI-1
[ 277.907] (II) modeset(0): EDID for output Composite-1
[ 277.907] (II) modeset(0): Printing probed modes for output Composite-1
[ 277.907] (II) modeset(0): Modeline "720x480"x31.3 13.50 720 734 798 858 480 483 486 502 interlace (15.7 kHz e)
[ 277.907] (II) modeset(0): EDID for output DSI-1
[ 277.907] (II) modeset(0): Output HDMI-1 disconnected
[ 277.907] (II) modeset(0): Output Composite-1 disconnected
[ 277.907] (II) modeset(0): Output DSI-1 disconnected
[ 277.907] (WW) modeset(0): No outputs definitely connected, trying again...
[ 277.908] (II) modeset(0): Output HDMI-1 disconnected
[ 277.908] (II) modeset(0): Output Composite-1 connected
[ 277.908] (II) modeset(0): Output DSI-1 disconnected
[ 277.908] (II) modeset(0): Using sloppy heuristic for initial modes
[ 277.908] (II) modeset(0): Output Composite-1 using initial mode 720x480 +0+0
[ 277.908] (II) modeset(0): Using default gamma of (1.0, 1.0, 1.0) unless otherwise stated.
[ 277.908] (==) modeset(0): DPI set to (96, 96)
[ 277.908] (II) Loading sub module "fb"
[ 277.908] (II) LoadModule: "fb"
[ 277.909] (II) Loading /usr/lib/xorg/modules/libfb.so
[ 277.911] (II) Module fb: vendor="X.Org Foundation"
[ 277.911] compiled for 1.18.3, module version = 1.0.0
[ 277.911] ABI class: X.Org ANSI C Emulation, version 0.4
[ 277.911] (II) UnloadModule: "fbdev"
[ 277.911] (II) Unloading fbdev
[ 277.911] (II) UnloadSubModule: "fbdevhw"
[ 277.911] (II) Unloading fbdevhw
[ 277.912] (==) Depth 24 pixmap format is 32 bpp
[ 278.193] (==) modeset(0): Backing store enabled
[ 278.193] (==) modeset(0): Silken mouse enabled
[ 278.193] (II) modeset(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[ 278.194] (==) modeset(0): DPMS enabled
[ 278.194] (II) modeset(0): [DRI2] Setup complete
[ 278.194] (II) modeset(0): [DRI2] DRI driver: vc4
[ 278.194] (II) modeset(0): [DRI2] VDPAU driver: vc4
[ 278.199] (--) RandR disabled
[ 278.204] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[ 278.204] (II) AIGLX: enabled GLX_ARB_create_context
[ 278.204] (II) AIGLX: enabled GLX_ARB_create_context_profile
[ 278.204] (II) AIGLX: enabled GLX_EXT_create_context_es{,2}_profile
[ 278.204] (II) AIGLX: enabled GLX_INTEL_swap_event
[ 278.204] (II) AIGLX: enabled GLX_SGI_swap_control and GLX_MESA_swap_control
[ 278.204] (II) AIGLX: enabled GLX_EXT_framebuffer_sRGB
[ 278.204] (II) AIGLX: enabled GLX_ARB_fbconfig_float
[ 278.204] (II) AIGLX: enabled GLX_EXT_fbconfig_packed_float
[ 278.205] (II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects
[ 278.207] (II) AIGLX: Loaded and initialized vc4
[ 278.207] (II) GLX: Initialized DRI2 GL provider for screen 0
[ 278.208] (II) modeset(0): Setting screen physical size to 190 x 127
Unfortunately I can't try glxgears
because when I set dtoverlay=vc4-kms-v3d
in /boot/config.txt
I get a black screen at boot on my HDMI screen. If I remove this line, the screen is working correctly.
However, I found that if I set dtoverlay=vc4-fkms-v3d
in /boot/config.txt
(the difference is the prefix "f" for "kms") then the screen is not black.
So now I can try glxgears and I have 60 FPS!
Problem solved!
Hello,
I am on Slackware ARM 14.2. I try to build mesa a363fa0c990284657df178b73e68d268c25069cf on my raspberry pi 3 model B in order to reach 60 FPS with the 'glxgears' utility. I am following these instructions: https://github.com/anholt/mesa/wiki/Building-Mesa-for-VC4.
Here is the configure step:
Here is the make step:
As you can see I get some "Error: selected processor does not support `something' in ARM mode" error messages. What's wrong please?
Thank you. Best regards.