Re: [Mesa-dev] Can I build mesa swrast on system without GPU? And how I should do it?
Quoting Oleg Gavrilchenko (2019-12-17 00:07:24) > Hello! > Sorry for my English. It is no my first language(Russian). > I have embedded system with XILINX ZYNQ-7000 processor(ARM Cortex-A9 2 > cores). This system also has framebuffer video device. Framebuffer with > image contains in DDR memory and is transmitted in display by HDMI > interface through special DMA(Framebuffer DMA in FPGA). I write simple > fbdev driver for this device and it work fine. This system not has any GPU. > I found out, that mesa can perform software rasterization for Open GL > swrast. Can I build mesa swrast for my device and how can I do it? > > I try do this with use cross compilation file. > > This is a cross compilation file for meson, cross_file.txt: > > [binaries] > c = 'arm-linux-gnueabihf-gcc' > cpp = 'arm-linux-gnueabihf-g++' > ar = 'arm-linux-gnueabihf-ar' > strip = 'arm-linux-gnueabihf-strip' > pkgconfig = 'pkg-config' > > [host_machine] > system = 'linux' > cpu_family = 'arm' > cpu = 'armv7hl' > endian = 'little' > > [properties] > needs_exe_wrapper = true > sys_root = '/home/oleg/work/z-turn-dvi/sysroot' > > [paths] > prefix ='/usr' > > > > I build mesa with that options: > > meson build/ --cross-file cross_file.txt \ > -Dplatforms=surfaceless \ > -Dosmesa=gallium \ > -Dgallium-drivers=swrast \ > -Ddri-drivers=[] \ > -Dvulkan-drivers=[] \ > -Degl=true \ > -Dgles1=true \ > -Dgles2=true \ > -Dglx=disabled > > ninja -C build/ > > build fail with errors: > > [84/882] Linking target src/mapi/es1api/libGLESv1_CM.so.1.1.0. > FAILED: src/mapi/es1api/libGLESv1_CM.so.1.1.0 > arm-linux-gnueabihf-gcc -o src/mapi/es1api/libGLESv1_CM.so.1.1.0 > 'src/mapi/es1api/ffa5f0c@@GLESv1_CM@sha/.._entry.c.o' -Wl,--as-needed > -Wl,--no-undefined -shared -fPIC -Wl,--start-group > -Wl,-soname,libGLESv1_CM.so.1 src/mapi/shared-glapi/libglapi.so.0.0.0 > -Wl,--gc-sections -pthread -L/home/oleg/work/z-turn-dvi/sysroot/usr/lib > -ldrm -lm -ldl -Wl,--end-group '-Wl,-rpath,$ORIGIN/../shared-glapi' > -Wl,-rpath-link,/home/oleg/src/mesa-19.2.7/build/src/mapi/shared-glapi > /opt/Xilinx/SDK/2018.2/gnu/aarch32/lin/gcc-arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabihf/7.2.1/../../../../arm-linux-gnueabihf/bin/ld: > > cannot find -ldrm > collect2: error: ld returned 1 exit status > > DRM option enable in Linux kernel, but I do not install libdrm on my > system. Should I do it? And how it will work with my fbdev? > Thank you for answers. And sorry for my English. > The build system enforces libdrm if you enable egl, because it assumes that you're going to compile the drm platform. I'm not sure if it'll work, but in the root meson.build around line 215 is this code: ```meson if with_gallium and system_has_kms_drm _glx = get_option('glx') _egl = get_option('egl') if _glx == 'dri' or _egl == 'true' or (_glx == 'disabled' and _egl != 'false') with_dri = true endif endif ``` You can try deleting that whole block and see if it things compile and work. Dylan signature.asc Description: signature ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev
[Mesa-dev] [ANNOUNCE] mesa 19.3.1
Hi list, I'd like to announce meas 19.3.1. I know it's a week earlier than normal, and it's a pretty small release. But with the upcoming Holidays (at least for me) it would otherwise be 4 weeks before a 19.3.1, so I've decided to make an early release, so that 19.3.2 won't be quite so huge. There's not much to look at here, just a few small fixes, mostly to Intel drivers, but with a radv, virgl, and core dri fix too. See you in the new year with a 19.3.2, Dylan Shortlog Bas Nieuwenhuizen (2): amd/common: Fix tcCompatible degradation on Stoney. amd/common: Always use addrlib for HTILE tc-compat. Dylan Baker (4): docs/19.3.0: Add SHA256 sums cherry-ignore: update for the 19.3.1 cycle docs: remove new_features.txt from stable branch VERSION: bump version for 19.3.1 Gert Wollny (1): virgl: Increase the shader transfer buffer by doubling the size Iván Briano (1): anv: Export filter_minmax support only when it's really supported Kenneth Graunke (1): iris: Default to X-tiling for scanout buffers without modifiers Lionel Landwerlin (2): anv: fix fence underlying primitive checks mesa: avoid triggering assert in implementation Luis Mendes (1): radv: fix radv secure compile feature breaks compilation on armhf EABI and aarch64 Tapani Pälli (2): dri: add __DRI_IMAGE_FORMAT_SXRGB8 i965: expose MESA_FORMAT_B8G8R8X8_SRGB visual git tag: mesa-19.3.1 https://mesa.freedesktop.org/archive/mesa-19.3.1.tar.xz SHA256: cd951db69c56a97ff0570a7ab2c0e39e6c5323f4cd8f4eb8274723e033beae59 mesa-19.3.1.tar.xz SHA512: 338d2e37122ef22cc4e27a2f3c39e23e419703a507ace99383c749a563936c5f0428cce9a68ac80d0bd2ff57be8a55f42aee0ed6d16bf6b77b4e59d428729568 mesa-19.3.1.tar.xz PGP: https://mesa.freedesktop.org/archive/mesa-19.3.1.tar.xz.sig signature.asc Description: signature ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev
[Mesa-dev] [ANNOUNCE] mesa 19.2.8
Hi list, I'd like to announce mesa 19.2.8, the last planned release in the 19.2 series. We've reached the point with 19.2 that most of the patches being nominated require manual backport, and many of them simply don't make sense to backport due to the changes to master since then. You may wish to consider migrating to 19.3.1 (also released today). There isn't too much here. A few fixups for amd/common, a bunch of intel/perf fixes, some meson fixes, vrigl, anv, nir, glsl, core gallium, core mesa, and iris rounds out the changes. I'll see you all again next year with mesa 19.3.2, Dylan Shortlog Alyssa Rosenzweig (1): gallium/util: Support POLYGON in u_stream_outputs_for_vertices Bas Nieuwenhuizen (2): amd/common: Always use addrlib for HTILE tc-compat. amd/common: Fix tcCompatible degradation on Stoney. Dylan Baker (6): docs: Add SHA256 sums for 19.2.7 meson/broadcom: libbroadcom_cle needs expat headers meson/broadcom: libbroadcom_cle also needs zlib cherry-ignore: Update for 19.2.8 docs: add relnotes for 19.2.8 VERSION: bump for 19.2.8 Gert Wollny (1): virgl: Increase the shader transfer buffer by doubling the size Iván Briano (1): anv: Export filter_minmax support only when it's really supported Jason Ekstrand (2): anv: Re-emit all compute state on pipeline switch anv: Don't leak when set_tiling fails Kenneth Graunke (1): iris: Default to X-tiling for scanout buffers without modifiers Lionel Landwerlin (7): intel/perf: fix invalid hw_id in query results intel/perf: set read buffer len to 0 to identify empty buffer intel/perf: take into account that reports read can be fairly old intel/perf: simplify the processing of OA reports intel/perf: fix improper pointer access anv: fix fence underlying primitive checks mesa: avoid triggering assert in implementation Nanley Chery (2): gallium/dri2: Fix creation of multi-planar modifier images gallium: Store the image format in winsys_handle Rob Clark (1): nir/lower_clip: Fix incorrect driver loc for clipdist outputs Timothy Arceri (1): glsl/nir: iterate the system values list when adding varyings git tag: mesa-19.2.8 https://mesa.freedesktop.org/archive/mesa-19.2.8.tar.xz SHA256: cffa8fa755c7422ce014c39ca0b770a092d9e0bbae537ceb2609c106916e5a57 mesa-19.2.8.tar.xz SHA512: 9bedc2f1a5296da96c1a2a491edaea701e70f683b26eac076e8cbef2230156d5d5ddb2330c3a2530afd4982a9893d76ded8d54bc73a98c846de0c3dfa3634c43 mesa-19.2.8.tar.xz PGP: https://mesa.freedesktop.org/archive/mesa-19.2.8.tar.xz.sig signature.asc Description: signature ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev