https://airlied.blogspot.com/2023/04/fedora-38-llvm-vs-team-fortress-2-tf2.html Skip to main content Search This Blog [ ] [Search] Dave Airlie Linux Graphics blog Fedora 38 LLVM vs Team Fortress 2 (TF2) * Get link * Facebook * Twitter * Pinterest * Email * Other Apps April 23, 2023 F38 just released and seeing a bunch of people complain that TF2 dies on AMD or other platforms when lavapipe is installed. Who's at fault? I've no real idea. How to fix it? I've no real idea. What's happening? AMD OpenGL drivers use LLVM as the backend compiler. Fedora 38 updated to LLVM 16. LLVM 16 is built with c++17 by default. C++17 introduces new "operator new/delete" interfaces[1]. TF2 ships with it's own libtcmalloc_minimal.so implementation, tcmalloc expects to replace all the new/delete interfaces, but the version in TF2 must not support or had incorrect support for the new align interfaces. What happens is when TF2 probes OpenGL and LLVM is loaded, when DenseMap initializes, one "new" path fails to go into tcmalloc, but the "delete" path does, and this causes tcmalloc to explode with "src/tcmalloc.cc:278] Attempt to free invalid pointer" Fixing it? I'll talk to Valve and see if we can work out something, LLVM 16 doesn't seem to support building with C++14 anymore. I'm not sure if static linking libstdc++ into LLVM might avoid the tcmalloc overrides, it might not also be acceptable to the wider Fedora community. [1] https://www.cppstories.com/2019/08/newnew-align/ * Get link * Facebook * Twitter * Pinterest * Email * Other Apps Comments Post a Comment Popular posts from this blog vulkan video decoding: radv status December 14, 2022 I've been working the past couple of weeks with an ffmpeg developer (Lynne) doing Vulkan video decode bringup on radv. The current status of this work is in a branch[1]. This work is all against the current EXT decode beta extensions in the spec. Khronos has released the final specs for these extensions. This work is rebased onto the final KHR form and is in a merge request for radv[2]. This contains an initial implementation of H264 and H265 decoding for AMD GPUs from TONGA to NAVI2x. It passes the basic conformance tests but fails some of the more complicated ones, but it has decoded the streams we've been throwing at it using ffmpeg. Building: git clone https:// gitlab.freedesktop.org/airlied/mesa git checkout radv-vulkan-video-prelim-decode mkdir build meson build -Dvulkan-beta =true -Dvulkan-drivers=amd -Dvideo-codecs=h264dec,h265dec --prefix= cd build ninja ninja install Running: export VK_ICD_FILENAMES=/share/vulkan/icd.d/radeon_icd.x86_64.json Read more LPC 2022 Accelerators BOF outcomes summary September 16, 2022 At Linux Plumbers Conference 2022, we held a BoF session around accelerators. This is a summary made from memory and notes taken by John Hubbard. We started with defining categories of accelerator devices. 1. single shot data processors, submit one off jobs to a device. (simpler image processors) 2. single-user, single task offload devices (ML training devices) 3. multi-app devices (GPU, ML/ inference execution engines) One of the main points made is that common device frameworks are normally about targeting a common userspace (e.g. mesa for GPUs). Since a common userspace doesn't exist for accelerators, this presents a problem of what sort of common things can be targetted. Discussion about tensorflow, pytorch as being the userspace, but also camera image processing and OpenCL. OpenXLA was also named as a userspace API that might be of interest to use as a target for implementations. There was a discussion on what to call the subsystem and where to place it in the tree. It was ag Read more lavapipe Vulkan 1.2 conformant May 27, 2022 The software Vulkan renderer in Mesa, lavapipe, achieved official Vulkan 1.2 conformance. The non obvious entry in the table is here . Thanks to all the Mesa team who helped achieve this, Shout outs to Mike of Zink fame who drove a bunch of pieces over the line, Roland who helped review some of the funkier changes. We will be submitting 1.3 conformance soon, just a few things to iron out. Read more Powered by Blogger Theme images by Michael Elkan Dave Airlie Visit profile Archive * April 20232 * March 20231 * February 20231 * January 20232 * December 20223 * September 20222 * July 20221 * May 20221 * February 20221 * November 20214 * August 20211 * July 20211 * April 20213 * March 20211 * November 20201 * October 20201 * August 20201 * May 20201 * May 20191 * December 20181 * July 20181 * March 20181 * February 20181 * December 20171 * November 20171 * October 20171 * August 20171 * July 20172 Show more Show less Report Abuse