mesa merge requestshttps://gitlab.freedesktop.org/mesa/mesa/-/merge_requests2024-03-28T14:03:05Zhttps://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28444svga: simplify copyright messages using SPDX2024-03-28T14:03:05ZMartin Krastevsvga: simplify copyright messages using SPDX### What does this MR do and why?
<!-- Describe in detail what your merge request does and why. -->
```
svga: simplify copyright messages using SPDX
Switch to a simplified SPDX scheme -- drop inline licenses
Signed-off-by: Martin Kras...### What does this MR do and why?
<!-- Describe in detail what your merge request does and why. -->
```
svga: simplify copyright messages using SPDX
Switch to a simplified SPDX scheme -- drop inline licenses
Signed-off-by: Martin Krastev <martin.krastev@broadcom.com>
```https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16375nir-to-tgsi: fix swizzle for double immediate2022-05-11T18:15:31ZCharmaine Leenir-to-tgsi: fix swizzle for double immediateUse ureg_DECL_immediate_uint64 to declare double immediate,
otherwise the swizzle for a double might not be in the valid form,
ie. must be either .xy or .zwUse ureg_DECL_immediate_uint64 to declare double immediate,
otherwise the swizzle for a double might not be in the valid form,
ie. must be either .xy or .zwCharmaine LeeCharmaine Leehttps://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7235WIP: gallium/tgsi: remove subroutine support2022-11-02T19:44:55ZKarol Herbstkherbst@redhat.comWIP: gallium/tgsi: remove subroutine supportit is dead code as besides nouveau and svga no driver tries to handle
it and there is simply now way to generate a TGSI with those anyway.it is dead code as besides nouveau and svga no driver tries to handle
it and there is simply now way to generate a TGSI with those anyway.https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6709Draft: Die RTLD_GLOBAL2023-06-06T15:48:11ZEmil VelikovDraft: Die RTLD_GLOBALAs you may know, our current use of `dlopen(driver_handle, RTLD_GLOBAL)` has been somewhat of a nuisance since it promotes all the symbols of the driver as well as its dependencies into the global namespace.
Thus resulting in symbol col...As you may know, our current use of `dlopen(driver_handle, RTLD_GLOBAL)` has been somewhat of a nuisance since it promotes all the symbols of the driver as well as its dependencies into the global namespace.
Thus resulting in symbol collision, which brings all sorts of fun behaviour.
Additionally, to allow sharing of the winsys (et al) for gallium drivers we used the linker specific dynamic-lists. Thus again and again we had to export the required API.
With this MR, I'm introducing an internal library `/usr/lib/mesa-tls/mesa_tls.so` which is the only one `dlopen`'d with `RTLD_GLOBAL`. The library allows for sharing the required state and has zero dependencies. As a result:
- there is no pollution of the global namespace
- we _consistently_ share state across APIs, with 5 lines of code
- no more linker magic (dynamic-lists) and linker file changes
I'm not 100% set of the naming of the library and API, but the functionality is all there.
This has been briefly tested and I would welcome people to check it against their favourite workload.
/cc @mareko @bnieuwenhuizen @imirkin @robclark @robh @hakzsam @kusma @issor.oruam @tpalli
@bnieuwenhuizen this effectively shares `ac_init_llvm_once` across radeonsi and radv, as mentioned earlier \o/
Notes:
- Last two patches are straight from Erik's MR !4683
- Use of `dlmopen` in Mesa is out of the question for the moment due to [this glibc bug](https://sourceware.org/bugzilla/show_bug.cgi?id=15271)
- Android.mk for the library is missing - @issor.oruam @tpalli can you add one and test? Alternatively we can preserve the original code for Android and use the new one otherwise.