Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] How to force mesa3d to use llvmpipe?
@ 2017-12-22 20:53 nimaim
  2017-12-22 21:22 ` nimaim
  0 siblings, 1 reply; 11+ messages in thread
From: nimaim @ 2017-12-22 20:53 UTC (permalink / raw)
  To: buildroot

Using Buildroot 2017.11 and following defconfig:

BR2_x86_i686=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y
BR2_TOOLCHAIN_EXTERNAL_URL="http://toolchains.free-electrons.com/downloads/releases/toolchains/x86-i686/tarballs/x86-i686--glibc--bleeding-edge-2017.05-toolchains-1-2.tar.bz2"
BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX="i686-buildroot-linux-gnu"
BR2_TOOLCHAIN_EXTERNAL_GCC_6=y
BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_9=y
BR2_TOOLCHAIN_EXTERNAL_CUSTOM_GLIBC=y
BR2_TOOLCHAIN_EXTERNAL_CXX=y
BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
BR2_SYSTEM_BIN_SH_BASH=y
BR2_ROOTFS_OVERLAY="fs-overlay"
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.9.71"
BR2_LINUX_KERNEL_DEFCONFIG="i386"
BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
BR2_PACKAGE_MESA3D_DEMOS=y
BR2_PACKAGE_MESA3D=y
BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SWRAST=y
BR2_PACKAGE_MESA3D_DRI_DRIVER_SWRAST=y
BR2_PACKAGE_MESA3D_OPENGL_EGL=y
BR2_PACKAGE_MESA3D_OPENGL_ES=y
BR2_PACKAGE_MESA3D_OPENGL_TEXTURE_FLOAT=y
BR2_PACKAGE_QT5=y
BR2_PACKAGE_QT5BASE_EXAMPLES=y
BR2_PACKAGE_QT5BASE_WIDGETS=y
BR2_PACKAGE_QT5BASE_OPENGL_ES2=y
BR2_PACKAGE_QT5BASE_XCB=y
BR2_PACKAGE_QT5BASE_DEFAULT_QPA="xcb"
BR2_PACKAGE_QT5BASE_FONTCONFIG=y
BR2_PACKAGE_QT5QUICKCONTROLS2=y
BR2_PACKAGE_XORG7=y
BR2_PACKAGE_XSERVER_XORG_SERVER=y
BR2_PACKAGE_XAPP_XINIT=y
BR2_PACKAGE_XAPP_XINPUT=y
BR2_PACKAGE_XAPP_XINPUT_CALIBRATOR=y
BR2_PACKAGE_XDRIVER_XF86_INPUT_EVDEV=y
BR2_PACKAGE_XDRIVER_XF86_INPUT_TSLIB=y
BR2_PACKAGE_XDRIVER_XF86_VIDEO_FBDEV=y
BR2_PACKAGE_XDRIVER_XF86_VIDEO_VESA=y
BR2_PACKAGE_XTERM=y
BR2_PACKAGE_FLUXBOX=y
BR2_TARGET_ROOTFS_INITRAMFS=y
BR2_TARGET_ROOTFS_ISO9660=y
# BR2_TARGET_ROOTFS_TAR is not set
BR2_TARGET_SYSLINUX=y

Long story short, I am trying to run a Qt 5.9.x Open GL application (based
on Quick Controls 2) on a an x86 platform that has no Linux support for
hardware accelerated graphics. Trying to get a valid framebuffer working on
that platform is no go either (usually crashes the system when you try to
load an intel video driver) so I'm stuck with trying to get it to work with
a software rasterizer and xcb. Upon testing the results, the application
runs very poorly. My only guess is it's because BR's mesa3d package is not
building the llvmpipe driver. When I run glxgears / glxinfo, I can show it
running swrast or softpipe instead. How do I force Mesa to build AND use
this specific driver?

I know it's not completely the hardware's fault because when I run Tiny Core
on it with X and OpenGL SW rast, it seems to run much smoother and the only
difference I see is that they seem to explicitly configure it to build llvm:
http://tinycorelinux.net/8.x/x86/tcz/src/Xorg-7.7-3d/compile_mesa.

Thoughts? Maybe I am misunderstanding how Mesa and OpenGL with swrast,
softpipe, and llvmpipe all work.



--
Sent from: http://buildroot-busybox.2317881.n4.nabble.com/

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-12-26 14:00 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-22 20:53 [Buildroot] How to force mesa3d to use llvmpipe? nimaim
2017-12-22 21:22 ` nimaim
2017-12-22 21:52   ` Romain Naour
2017-12-22 22:10     ` Nimai Mahajan
2017-12-22 23:08       ` Adrian Perez de Castro
2017-12-22 23:11         ` Adrian Perez de Castro
2017-12-23  0:05           ` Nimai Mahajan
2017-12-24 16:46             ` Nimai Mahajan
2017-12-25 12:08               ` Romain Naour
2017-12-26 14:00                 ` Nimai Mahajan
2017-12-22 23:50         ` Nimai Mahajan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox