Repository navigation
Releases
Turnip 27.0.0-devel - Android/KGSL, our stack + the v40 Android work
Android/Bionic build of the stack: the 35 release patches plus the Android work of
Adreno-Tools-Drivers v40. This is a second artefact class, not a variant of the Linux
libraries in the bisect-* pre-releases: Bionic instead of glibc, freedreno-kmds=kgsl
instead of msm, and -Dplatforms=android -Dandroid-stub=true.
| Mesa base | adb5358d556acb53ac6891675b0dbc65a24d0fb7 (27.0.0-devel) |
| stack | patches/stacks/android-both.txt — release set + android/0901 + android/0902 |
| stack commit | 2414b1b621d4cf7b938a51048632c4e7a5cb6d2a, tree 785eba3065e6e9e541181b57dc4b9b903038a636 |
| version string the driver reports | Mesa 27.0.0-devel (git-2414b1b621) |
libvulkan_freedreno.so sha256 |
10c4be473c71541694b904be058498c888614f916afc3755036e3acc742ec357 |
| api level | compile target 35, -Dplatform-sdk-version=36, minApi 28 in meta.json |
| kernel driver | KGSL |
What 0901 adds on top of our stack
The state that three python editors of upstream tag v40 write, verified by tree hash rather
than by trusting anchors (upstream edits Mesa by anchor):
u_gralloc_fallback.creads the UBWC flag without insisting on the legacygmsmmagic
header that newer Qualcomm gralloc no longer writes; with the guard in place a compressed
buffer is treated as linear.u_gralloc_aimapper.c, a new IMapper5 backend reached through the stable-C AIMapper entry
point. A-Dandroid-stub=truebuild gates out Mesa's other backends, so without this the
fallback is the only one.- the vendor UBWC bit in the AHB usage answer (
vk_android.c,vk_physical_device.h,
tu_device.cc). The Android 16 loader readsVkAndroidHardwareBufferUsageANDROIDout of
GetPhysicalDeviceImageFormatProperties2and returns before the legacy
GetSwapchainGrallocUsagechain, so this decides what the swapchain is asked for.
0902 is four build fixes for the cross build, none of them driver behaviour.
Not taken, with the reason in the header of 0901: the mutable-image file of that set
conflicts with our measured version of the same decision (tu_image.cc:463), the OneUI UBWC
hint is for a configuration this device is not, and the a6xx/a8xx sets are generations nothing
here is measured on. Verbatim copies of the whole v40 set are in
patches/external/adreno-tools-v40/ with FILES-SHA256.txt.
What is NOT claimed
Nothing in this library is measured, and it has never been run: the build machine has no
Bionic runtime, so there is no vulkaninfo, no apiVersion and no frame time attached to it.
It is a vehicle for the frame-skip A/B on the Android side, where the clean Linux build already
exonerated the 35 release patches.
Two things to keep in mind when comparing:
- The compiler is not upstream's. The NDK ships its clang only as linux-x86_64 and FEX does
not start inside a podman container, so this library is built with the distro clang 22 plus
the NDK r29 sysroot. Upstream's published artefact uses the NDK's clang 21. A behaviour
difference between the two is not evidence about a patch until the toolchain is controlled
for. - The first frames after a swap warm the pipeline cache. Each of these libraries bakes its
own git sha, which changes the cache UUID, so the first frames are not a measurement.
Checks the library passed (readelf, nm, strings in the build container): AArch64, no
GLIBC_* versioned symbols, no drmGetVersion (so KGSL, not MSM), kgsl-3d0 present, the
identity string baked, and the dynamic export table being HMI only — that is how Mesa links
an Android build (src/vulkan/vulkan-android.sym), so the driver is opened as a hardware
module and the three desktop vk_icd* entry points the Linux builds export are absent by design.
Recipe: scripts/build-turnip-android.sh, toolchain
image-build/Containerfile.android-cross, background docs/build.md ("Android build"),
numbers results/android-both.log.
Turnip 27.0.0-devel + patch stack p65 (Adreno A7xx)
Turnip 27.0.0-devel + patch stack p65, for Adreno A7xx (built and tested on A740, aarch64 Linux + MSM KMD - not an Android build).
Library: libvulkan_freedreno.so sha256 40859994d9c1d559a5b3478167cf2c9ec3d529b9a6c3dd9adca484eafa7df7c0, Mesa 27.0.0-devel @ adb5358d556, Vulkan 1.4.368. Built twice from the same tree, the two builds hash identical.
Assets
| asset | sha256 |
|---|---|
Turnip_27.0.0-devel_p65.zip |
4ac65440ee1e2be7a6276440ae50573163165bd0d41176b205ed3d8ab44c2126 |
turnip-p65-source-bundle.tar.gz |
c12bba3c988505fba549c42544429a54c78f0ea3d0085732c617e1b1b47b27b0 |
The zip carries the tested binary (unstripped, so a bug report can be turned into a stack trace), the ICD manifest, meta.json, README.txt and SHA256SUMS. The source bundle carries the 35 patch files of patches/RELEASE-STACK.txt and HOW-TO-APPLY.txt; applied in sorted order onto a clean adb5358d556 with plain git apply (no --3way, no fuzz) they give the diff 13f879f3c084ef3ee4b3793a8618053d980821082c6a78bca3c2a67d00ae9ea3 over 17 files, and that tree is identical to the branch the library was built from.
What is new since p64: one patch, 0064, a correctness fix.
VkImageFormatListCreateInfo lists the other formats an image may be viewed as. The format the image was created with is always a legal view and the app does not have to list it, so the set whose storage the driver has to describe is {base} U pViewFormats. The four format-list predicates compared only the list members, and the UBWC one declared a one-member list compatible before looking at anything. An image whose list omitted its own format therefore kept the tiled, compressed layout while the same set written out went linear - the layout depended on how the app spelled the list, and the contents came back wrong.
Measured on the device with tests/a740-format-list-base-probe.c (two pairs, each set written once without the base and once with it, results/fmt-list-base-0064.log):
| pair | before | with 0064 |
|---|---|---|
R8G8_UNORM+{R16_UNORM} vs {R16_UNORM,R8G8_UNORM} |
memreq 0x2000 vs 0x1000, 1536 of 2048 words differ through the shared view | 0x1000 vs 0x1000, 0 of 2048 |
R16_UNORM+{R8G8_UNORM} vs {R8G8_UNORM,R16_UNORM} |
memreq 0x3000 vs 0x1000, 512 of 2048 differ | 0x1000 vs 0x1000, 0 of 2048 |
NV12+{NV12} vs NV12+{NV12,NV12} |
0x4000 vs 0x2000 - one set, two layouts | 0x4000 vs 0x4000 |
A list that names only the image's own format keeps the layout that format gets on its own: R8G8+{R8G8} 0x2000, R16+{R16} 0x3000, BGRA8+{BGRA8} 0x3000, identical to p64. The fix is the pairwise model RADV uses - every list entry checked against the base, not entries against each other.
What is claimed. rp6-vkd3d-sparse-test (sparse, tiling and layout suite) on exactly this library: 94 EXACT, no MISMATCH (results/test-p65-ship.log). The 0064 probe above, byte-exact. The library was built twice from a tree that re-applies from the published patches.
What is not claimed. No timing number for 0064 - it is a layout decision, and the probe performs no timing. Targeted Vulkan CTS was not run for this release. The per-patch GPU numbers in the patch headers were measured on the pre-rebase branch; the line as a whole, on this base, is -13.24% gpu_ns with the render mode forced to GMEM and -9.61% under the default tuner against a clean no-patch build of the same commit (results/bench-p63-stack-vs-stock27.log).
gen3 (A750, a8xx) note. Those parts answer format-independently: they keep the tiles and set is_mutable instead of falling back to linear. This device is gen2, so the branch never runs here and the question cannot be measured on hardware. The branch is untouched; only the set of lists reaching it changes. tests/host-format-list-gate-table.c enumerates the old and the new predicate over the compat table under both property sets (results/fmt-list-base-gate-table.log): the same set of lists changes answer on gen2 and gen3, 4494 become incompatible and 7 become compatible, and those 7 are one shape - a list that repeats a base the compat table does not name, which is the NV12 row in the table above. No self-list loses the gate (0 of 37).
Install
unzip Turnip_27.0.0-devel_p65.zip -d turnip-p65
export VK_DRIVER_FILES=$PWD/turnip-p65/freedreno_icd.json
vulkaninfo --summary | grep -E 'deviceName|driverInfo'The pipeline cache UUID is derived from the build id, so the first run after swapping the driver rebuilds vkd3d-proton.cache.
Source, measurements and how a release is made here: https://github.com/keks2293/turnip-patches, docs/release.md. This is the first release published on the squashed history; the tags and assets of p14, p61, p62, p63 and p64 were removed on 2026-12-04 and are recorded in docs/release.md.
Turnip 27.0.0-devel + g4-device-init-state (bisect artefact, A7xx Linux)
Turnip 27.0.0-devel + g4-device-init-state - one driver of a five-driver bisect set.
Not a driver recommendation. The tested line is 27.0.0-devel-p65. This build
carries one subsystem group of that line onto a clean Mesa; no test suite and no benchmark
was run on it, it exists to answer one question: which part of the stack changes a
behaviour you can see.
| Mesa base | 27.0.0-devel @ adb5358d556 |
| Group | Device init, state and the debug environment |
| Patches | 4 of the 35 of the release line |
Tree the .so was built from |
f0438c797657f23138a951b2bd41aed2f1b65040 (branch bisect-g4-device-init-state) |
libvulkan_freedreno.so sha256 |
25475bd8f2521c1185bf43cc6a4ceb9977252006fe5ae3184455c589fd33cb3d |
| Version the driver reports | Mesa 27.0.0-devel (git-f0438c7976) |
That version string is how you check the file you installed is the file you are testing:
vulkaninfo --summary (or the driver line in your launcher's log) has to show the string
above - it carries this group's own commit, so the five artefacts differ there. After each
swap also run sha256sum on the installed path: a stale library in the loader path is the
most common way a bisect answers the wrong question.
What is in it
| patch | what it does |
|---|---|
0007 |
0007: TU_FORCE_PROPS - force driver properties from an environment |
0008 |
0008: gen2 gets has_generic_clear + QCTDD12766770_r8g8_fc_alignment by |
0015 |
0015: clear A7XX CCU invalidates already performed by tu_init_hw() from pending |
0023 |
0023: narrow the dirty-state reset after vkCmdExecuteCommands() |
Installing it
Linux/glibc build for the MSM kernel driver - not an Android/Bionic library, it does not
load under Bionic. Point the Vulkan loader at it: unpack the .so and either set
library_path in your existing freedreno_icd.json to the unpacked file, or export
VK_DRIVER_FILES at a manifest that names it (the manifest shape is in
docs/build.md of the source repository). One driver at a time: the driver that answers
vulkaninfo --summary is the one you are testing.
Reporting
Say which artefact of the set you ran, the .so sha256 above, and what the symptom did -
gone, unchanged, worse. A result that needs more than one artefact to narrow down is still
worth posting: the groups are disjoint, so two "unchanged" answers eliminate patches.
Turnip 27.0.0-devel + g3-render-mode-waits (bisect artefact, A7xx Linux)
Turnip 27.0.0-devel + g3-render-mode-waits - one driver of a five-driver bisect set.
Not a driver recommendation. The tested line is 27.0.0-devel-p65. This build
carries one subsystem group of that line onto a clean Mesa; no test suite and no benchmark
was run on it, it exists to answer one question: which part of the stack changes a
behaviour you can see.
| Mesa base | 27.0.0-devel @ adb5358d556 |
| Group | Render mode, render passes and waits |
| Patches | 7 of the 35 of the release line |
Tree the .so was built from |
1a12d561644bf38661226c3b6d99ff93354ce3e6 (branch bisect-g3-render-mode-waits) |
libvulkan_freedreno.so sha256 |
b4e1bf012f2d995fdc958004524d70272386e08e5235695967fd953be1bac53d |
| Version the driver reports | Mesa 27.0.0-devel (git-1a12d56164) |
That version string is how you check the file you installed is the file you are testing:
vulkaninfo --summary (or the driver line in your launcher's log) has to show the string
above - it carries this group's own commit, so the five artefacts differ there. After each
swap also run sha256sum on the installed path: a stale library in the loader path is the
most common way a bisect answers the wrong question.
What is in it
| patch | what it does |
|---|---|
0053 |
Charge GMEM for replaying every draw once per tile (tile_replay autotune flag) |
0056 |
mode: turn the tile-replay charge on by default |
0057 |
mode: credit GMEM only for the destination reads it keeps off memory |
0058 |
mode: turn the RMW credit on by default |
0059 |
mode: let the bandwidth estimator decide a render pass of fewer than five draws |
0060 |
mode: decide render passes of fewer than five draws by default |
0061 |
tile: stop draining the 3D pipe before every RM6_BIN_RENDER_END |
Installing it
Linux/glibc build for the MSM kernel driver - not an Android/Bionic library, it does not
load under Bionic. Point the Vulkan loader at it: unpack the .so and either set
library_path in your existing freedreno_icd.json to the unpacked file, or export
VK_DRIVER_FILES at a manifest that names it (the manifest shape is in
docs/build.md of the source repository). One driver at a time: the driver that answers
vulkaninfo --summary is the one you are testing.
Reporting
Say which artefact of the set you ran, the .so sha256 above, and what the symptom did -
gone, unchanged, worse. A result that needs more than one artefact to narrow down is still
worth posting: the groups are disjoint, so two "unchanged" answers eliminate patches.
Turnip 27.0.0-devel + g2-copy-clear-resolve (bisect artefact, A7xx Linux)
Turnip 27.0.0-devel + g2-copy-clear-resolve - one driver of a five-driver bisect set.
Not a driver recommendation. The tested line is 27.0.0-devel-p65. This build
carries one subsystem group of that line onto a clean Mesa; no test suite and no benchmark
was run on it, it exists to answer one question: which part of the stack changes a
behaviour you can see.
| Mesa base | 27.0.0-devel @ adb5358d556 |
| Group | Copy, clear and resolve |
| Patches | 13 of the 35 of the release line |
Tree the .so was built from |
9ffee6ab6661e7d0792c73477e5721fd26abaf73 (branch bisect-g2-copy-clear-resolve) |
libvulkan_freedreno.so sha256 |
a05b0e8faa4a0d8c48269f59081a56f053737c1795765474cfc72a8dbf29ce55 |
| Version the driver reports | Mesa 27.0.0-devel (git-9ffee6ab66) |
That version string is how you check the file you installed is the file you are testing:
vulkaninfo --summary (or the driver line in your launcher's log) has to show the string
above - it carries this group's own commit, so the five artefacts differ there. After each
swap also run sha256sum on the installed path: a stale library in the loader path is the
most common way a bisect answers the wrong question.
What is in it
| patch | what it does |
|---|---|
0013 |
0013: mark a CCU color clean after buffer->image on A7XX |
0016 |
0016: use destination image mutability in copy-image swapped-format check |
0017 |
0017: use destination image mutability in copy-image UBWC reinterpretation |
0018 |
0018: reinterpret UBWC-UBWC copies when the device says the storage agrees |
0019 |
0019: emit GMEM clear state once per attachment, not once per clear rectangle |
0020 |
0020: hoist GMEM store sync out of the layer loop |
0021 |
0021: hoist GMEM clear resolve-group IDs out of the rect/layer loops |
0022 |
0022: batch unaligned image-to-buffer copies when the pitch is 64-byte aligned |
0024 |
0024: hoist the GMEM store sync across attachments |
0025 |
0025: hoist generic clear resolve IDs, format and write mask |
0026 |
0026: hoist generic clear layer setup |
0048 |
Hoist layer-invariant setup out of the MSAA slow GMEM store loop |
0062 |
Defer the slow GMEM store CCU clean for simple multi-layer stores |
Installing it
Linux/glibc build for the MSM kernel driver - not an Android/Bionic library, it does not
load under Bionic. Point the Vulkan loader at it: unpack the .so and either set
library_path in your existing freedreno_icd.json to the unpacked file, or export
VK_DRIVER_FILES at a manifest that names it (the manifest shape is in
docs/build.md of the source repository). One driver at a time: the driver that answers
vulkaninfo --summary is the one you are testing.
Reporting
Say which artefact of the set you ran, the .so sha256 above, and what the symptom did -
gone, unchanged, worse. A result that needs more than one artefact to narrow down is still
worth posting: the groups are disjoint, so two "unchanged" answers eliminate patches.
Turnip 27.0.0-devel + g1-image-formats (bisect artefact, A7xx Linux)
Turnip 27.0.0-devel + g1-image-formats - one driver of a five-driver bisect set.
Not a driver recommendation. The tested line is 27.0.0-devel-p65. This build
carries one subsystem group of that line onto a clean Mesa; no test suite and no benchmark
was run on it, it exists to answer one question: which part of the stack changes a
behaviour you can see.
| Mesa base | 27.0.0-devel @ adb5358d556 |
| Group | Image layout, formats and UBWC compatibility |
| Patches | 11 of the 35 of the release line |
Tree the .so was built from |
3b9434d301d618d86f7ef3ba1c3ac375cec9a14b (branch bisect-g1-image-formats) |
libvulkan_freedreno.so sha256 |
e765550ac09ba2ccca2932753bb9b9ac9cd21e589cb079ad816d6b56be4b693f |
| Version the driver reports | Mesa 27.0.0-devel (git-3b9434d301) |
That version string is how you check the file you installed is the file you are testing:
vulkaninfo --summary (or the driver line in your launcher's log) has to show the string
above - it carries this group's own commit, so the five artefacts differ there. After each
swap also run sha256sum on the installed path: a stale library in the loader path is the
most common way a bisect answers the wrong question.
What is in it
| patch | what it does |
|---|---|
0004 |
0004: lift the sparseResidencyImage2D gate and refuse creation of the hole |
0005 |
0005: a uniform-swap list stays tiled (upstream TODO in tu_formats.cc) |
0006 |
0006: the FD6_UBWC_B8G8R8A8_INT type in the compat table of freedreno_ubwc.h |
0009 |
NV12 + MUTABLE_FORMAT: do not drop the image to linear, drop only UBWC |
0010 |
A format list where a single-channel format disagrees with a multi-channel one: keep the tiling |
0011 |
0011: rows for single-channel 16-bit and packed 10-bit in fd6_ubwc_compat_mode() |
0012 |
0012: _SFLOAT members in the integer UBWC compat classes of fd6_ubwc_compat_mode() |
0014 |
0014: a mutable image without a format list keeps the tiling its class allows |
0050 |
Name the layout question that ubwc_all_formats_compatible was answering twice |
0051 |
Keep sparse residency self-consistent: one tile mode, one question answered once |
0064 |
A mutable image is its own format too: answer layout questions about {base} U list |
Installing it
Linux/glibc build for the MSM kernel driver - not an Android/Bionic library, it does not
load under Bionic. Point the Vulkan loader at it: unpack the .so and either set
library_path in your existing freedreno_icd.json to the unpacked file, or export
VK_DRIVER_FILES at a manifest that names it (the manifest shape is in
docs/build.md of the source repository). One driver at a time: the driver that answers
vulkaninfo --summary is the one you are testing.
Reporting
Say which artefact of the set you ran, the .so sha256 above, and what the symptom did -
gone, unchanged, worse. A result that needs more than one artefact to narrow down is still
worth posting: the groups are disjoint, so two "unchanged" answers eliminate patches.
Turnip 27.0.0-devel + clean (bisect artefact, A7xx Linux)
Turnip 27.0.0-devel + clean - one driver of a five-driver bisect set.
Not a driver recommendation. The tested line is 27.0.0-devel-p65. This build
carries one subsystem group of that line onto a clean Mesa; no test suite and no benchmark
was run on it, it exists to answer one question: which part of the stack changes a
behaviour you can see.
| Mesa base | 27.0.0-devel @ adb5358d556 |
| Group | clean - no patches |
| Patches | 0 of the 35 of the release line |
Tree the .so was built from |
adb5358d556acb53ac6891675b0dbc65a24d0fb7 (branch bisect-clean) |
libvulkan_freedreno.so sha256 |
50f5575a0c0ccae0ac4ec6bcc909c72ab8747aaa89a14010deb16e414c4b2e3e |
| Version the driver reports | Mesa 27.0.0-devel (git-adb5358d55) |
That version string is how you check the file you installed is the file you are testing:
vulkaninfo --summary (or the driver line in your launcher's log) has to show the string
above - it carries this group's own commit, so the five artefacts differ there. After each
swap also run sha256sum on the installed path: a stale library in the loader path is the
most common way a bisect answers the wrong question.
What is in it
Nothing: the library is the base tree, built with the same compiler, flags and container as
every other artefact of the set. Use it as the A side of every comparison.
Installing it
Linux/glibc build for the MSM kernel driver - not an Android/Bionic library, it does not
load under Bionic. Point the Vulkan loader at it: unpack the .so and either set
library_path in your existing freedreno_icd.json to the unpacked file, or export
VK_DRIVER_FILES at a manifest that names it (the manifest shape is in
docs/build.md of the source repository). One driver at a time: the driver that answers
vulkaninfo --summary is the one you are testing.
Reporting
Say which artefact of the set you ran, the .so sha256 above, and what the symptom did -
gone, unchanged, worse. A result that needs more than one artefact to narrow down is still
worth posting: the groups are disjoint, so two "unchanged" answers eliminate patches.