Skip to content

borealis: fix host image copies after unmapped or placed maps, and refuse fd imports smaller than allocationSize - #582

Merged
RyanTheTide merged 3 commits into
aurora-silicon:aurora-wipfrom
funkzy:pr/hk-host-copy-map
Nov 21, 2026
Merged

RyanTheTide merged 3 commits into
aurora-silicon:aurora-wipfrom
funkzy:pr/hk-host-copy-map

Conversation

@funkzy

@funkzy funkzy commented Nov 20, 2026 •

Copy link
Copy Markdown

Three fixes for CPU access to memory that the driver reached through a stale pointer or past the end of a BO, or that leaked a mapping when two threads mapped a BO at once.

Changes

  1. borealis: fix host image copies after the memory is unmapped or mapped placed, on any thread.
    • Before: hk_image_plane_bind() kept agx_bo_map(mem->bo) plus the plane's offset for the image's lifetime, and vkCopyMemoryToImageEXT, vkCopyImageToMemoryEXT and vkCopyImageToImageEXT copied through that pointer. For memory that is neither exported nor imported, the BO's mapping is also the one vkMapMemory2 returns. So vkUnmapMemory2 removes it, and a VK_EXT_map_memory_placed map moves it to the application's address. A host image copy after either went through a range that no longer maps the memory. Host image copies need no external synchronization on the memory, so a copy on one thread could also lose its mapping to a map or unmap on another.
    • After: host image copies have a mapping of their own.
      • The plane keeps its memory object and its offset in the BO.
      • The first host image copy of the memory maps the BO with agx_bo_map_owned(). That mapping lives until vkFreeMemory.
      • vkMapMemory2 and vkUnmapMemory2 touch only the BO's shared mapping or the memory object's own, never the copies' one. A range unmapped with VK_MEMORY_UNMAP_RESERVE_BIT_EXT stays reserved.
      • When two threads make the first copies at once, both map, a compare-and-swap keeps the mapping installed first, and the other is unmapped.
      • Host-pointer memory, which stays where the application put it, and a backend that cannot map a BO twice use the BO's shared mapping.
      • A BO that cannot be mapped fails the copy with VK_ERROR_MEMORY_MAP_FAILED. Binding an image no longer maps its memory on the CPU.
  2. borealis: refuse fd imports smaller than their allocationSize.
    • Before: an opaque fd or dma-buf import took the BO's size from the imported object and kept the caller's allocationSize as the size of the memory, without comparing the two. Images bound to that memory are checked against the BO in hk_image_plane_bind(). A buffer is bounded only by allocationSize, so it could address GPU memory past the end of the BO.
    • After: such an import fails with VK_ERROR_INVALID_EXTERNAL_HANDLE, as in anv. The BO is released and the fd stays with the caller. Imports whose object is at least allocationSize bytes are unchanged.
  3. asahi: map a BO once when two threads map it first at the same time, so no mapping leaks.
    • Before: agx_bo_map() mapped a BO on first use without serialization. Two threads mapping one BO for the first time at once, such as two contexts mapping a shared resource, each mapped it and stored their mapping, so one leaked and _map_size could be the other thread's. The move of a mapping to a placed address wrote the same fields the same way.
    • After: agx_bo_map_placed() maps a BO, or moves its mapping, under a new agx_device::bo_mmap_lock, checking again under it. A BO already mapped where it is wanted is returned without the lock, as before. On a backend with bo_mmap_independent the mapping is made into a copy of the BO and stored after its size, so a reader without the lock never sees a torn size or a failed mapping. A backend without it maps the BO in place under the lock.
    • Why a lock: the backend interface allows a backend that cannot map a BO twice, and a compare-and-swap would need the losing thread's second mapping.

The code is common to every GPU Borealis supports, and the changes are the same on each. Behaviour changes only for:

  • a host image copy after an unmap or a placed map, or concurrent with one;
  • an import smaller than its allocationSize;
  • two threads making a BO's first mapping at once. Commit 3 runs in the Gallium driver too, as one uncontended lock per first map of a BO.

Memory used for host image copies gets one more CPU mapping of its BO.

Testing

  • Host: the asahi suite passes (160/160) with asserts on.
    • hk_host_image_copy covers copies after an unmap, through a placed mapping, after an unmap that keeps the range reserved, and after a placed map and an unmap while the copies' mapping is in use.
    • It also runs two threads racing the first copy of one memory object, holding the mock mapping until both have mapped: two mappings are made, one is unmapped, and both copies use the same one. And two threads making a BO's first shared mapping at once: one mapping is made, and both get it.
    • hk_memory_oom also imports objects smaller than, equal to and larger than allocationSize.
    • Without the fixes, both tests fail. With the compare-and-swap replaced by a plain store, hk_host_image_copy fails at the two-thread check; with commit 3's lock removed, at the shared-mapping check.
  • Mac Studio (M5 Ultra): these commits ran on top of asahi: admit the M5 Ultra (G17D) as one row of the chip table, so Vulkan runs on the Mac Studio's GPU instead of failing at device open #362, which the M5 Ultra needs to run Vulkan, with loader: pick zink for the M5 Ultra's GPU, so Hyprland and EGL clients start on its GPU instead of aborting #363 and the push descriptor fix also applied, against asahi: admit the M5 Ultra (G17D) as one row of the chip table, so Vulkan runs on the Mac Studio's GPU instead of failing at device open #362 alone, in one boot.
    • An on-device test of host image copies through each mapping state fails in 4 of 5 states before (three crash; after an unmap, an unrelated mapping now at the old range had 65275 of its 65536 bytes overwritten) and passes in all 5 after. The application's placed and reserved ranges stay as the application set them.
    • Two threads copying while a third maps placed and unmaps, 50 rounds and 22917 maps: crashes before; 0 errors and 0 texels wrong after.
    • Four threads making the first copies of a memory object, 50 rounds: one 256 KiB mapping added per round, and the process's render-node mappings the same after round 50 as after round 1.
    • An import of a 16 KiB object as 1 MiB was accepted before and returns VK_ERROR_INVALID_EXTERNAL_HANDLE after, for both dma-buf and opaque fd; imports at the object's size succeed.

dEQP-VK coverage

No dEQP-VK case catches these bugs, so the host tests are the regression guard:

  • image.host_image_copy never maps or unmaps the memory and copies from one thread.
  • memory.map_placed never does a host image copy.
  • image.concurrent_copy copies from many threads into one image whose memory the application never maps. So it reaches the concurrent first map, but its results cannot show a leaked mapping.
  • An import larger than its object is invalid usage, which CTS does not exercise.

dEQP-VK on the Mac Studio

All runs on the Mac Studio (M5 Ultra, J775D) in one boot, the pack's kernel on the 27.2 stub, with #362 alone (the base) and #362 with #363, #582 and #583 on top (the head) installed side by side, ASAHI_M5_HOST_ALIAS_STATIC=1 as before. Every case gave the same result on both builds, with no GPU faults:

Set Cases Pass Fail NotSupported
image.host_image_copy, 1 in 8 5310 1784 0 3526
memory.map_placed, api.external.memory, push_descriptor outside binding_model 693 419 0 274
binding_model push descriptor cases, 1 in 4 6538 6122 0 416
ycbcr, 1 in 8 8520 5634 0 2886
image.concurrent_copy, 1 in 40 6 5 0 1

The four pipeline.monolithic.push_descriptor.compute.incremental_updates* cases that failed with and without the series last time now pass on both. The 628-case render subset gives 571 Pass and 57 NotSupported on both.

@funkzy
funkzy force-pushed the pr/hk-host-copy-map branch from 3b18094 to c5ac4f4 Compare November 20, 2026 21:24
@RyanTheTide RyanTheTide changed the title hk: fix host image copies after unmapped or placed maps, and refuse fd imports smaller than allocationSize borealis: fix host image copies after unmapped or placed maps, and refuse fd imports smaller than allocationSize Nov 20, 2026

@RyanTheTide RyanTheTide left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No blockers. Both fixes are correct, and the evidence is good: a host test that fails before and passes after for each fix, plus the on-device mapping-state test. I checked the fd-import error path. The BO is unreferenced and mem->bo cleared before fail_alloc. The fd is closed only on the success path, so it stays with the caller as the spec requires. The check uses the raw allocationSize, as anv does. The placed-map interplay also holds: agx_bo_map() returns an existing placed mapping as is, a later placed vkMapMemory2 relocates a mapping that a copy created, and memoryMapRangePlaced is false, so the copy's map + bo_offset_B arithmetic stays valid.

  1. hk_image.c:2351, hk_image_plane_map(): the unserialized first map is now reached from vkCopyMemoryToImage/vkCopyImageToMemory. Those calls don't require external synchronization on the VkDeviceMemory, and texture-streaming threads call them in parallel by design. Two threads copying into different images in the same never-mapped allocation can both see _map == NULL, so both mmap, one mapping leaks, and _map_size can be torn. Before this change the race was confined to vkBindImageMemory, which applications rarely run in parallel on one allocation. Fix: take the first map under a lock, either a per-BO lock or the device's BO lock, or install it with a compare-and-swap on bo->_map and munmap the loser.
  2. Testing: please name the dEQP-VK cases that exercise this, if there are any. In the tables the host_image_copy and map_placed results are identical before and after, so CTS apparently doesn't cover either bug. Saying so in the PR would make clear that the new host tests are the only regression guard.
  3. Naming: both commit subjects use the "hk:" prefix. Please use "borealis:" in the commit messages.

Assisted-by: LLM (Claude:Opus 5.5)

@RyanTheTide

Copy link
Copy Markdown

Both fixes look correct to me. The import check releases only the reference agx_bo_import took and leaves the fd with the caller. I walked the host-copy lookup through unmap, unmap-with-reserve, placed map and the shared/owned-mapping cases against hk_MapMemory2KHR/hk_UnmapMemory2KHR, and each one ends up on the right mapping.

One follow-up worth considering. Host image copies are mostly issued from worker threads, so the unserialized agx_bo_map() noted in the description is now hit at copy time rather than once at bind:

  • Two copies into images that share one VkDeviceMemory, issued from two threads before the memory has a mapping. Both can see _map == NULL (src/asahi/lib/agx_device.h:403) and map the BO, and one mapping leaks.
  • A copy running through a mapping it created, while the application places a vkMapMemory2 of the same memory on another thread. agx_bo_map_placed unmaps that mapping under the copy (agx_device.h:397-401).

Neither is a regression, since both sequences were already broken with the pointer taken at bind. But giving host copies a mapping of their own would decouple them from the application's map state entirely. That could be agx_bo_map_owned, kept on the memory object, with the shared mapping as a fallback where the backend can't map twice. Holding bo_map_lock around the lookup-or-map would at least fix the first case. Either could be a separate change.

Assisted-by: LLM (Claude:Opus 5.5)

@funkzy

funkzy commented Nov 21, 2026

Copy link
Copy Markdown
Author

Thanks for both reviews. Taking the points in order, with your follow-up folded into the first.

1. The first map at copy time, and a placed map under a running copy. I took your structural suggestion, since it closes both cases and a lock around lookup-or-map would close only the first.

  • Own mapping for copies (folded into the first commit, now "hk: fix host image copies after the memory is unmapped or mapped placed, on any thread"). The plane keeps its hk_device_memory and its offset in the BO. The first host image copy of the memory maps the BO with agx_bo_map_owned(), and that mapping lives until vkFreeMemory. vkMapMemory2 and vkUnmapMemory2 touch only the BO's shared mapping or the memory object's own map, never the copies' one. So a placed map or an unmap on another thread can no longer unmap a mapping a copy is using.
  • First copy on two threads. Both map, a compare-and-swap on hk_device_memory::copy_map keeps the first installed, and the loser unmaps its own (agx_bo_unmap_owned()). That mapping always covers the whole BO, so there is no size to publish next to the pointer, and vkFreeMemory unmaps bo->size.
  • Fallback. Host-pointer memory, which stays where the application put it, and a backend without bo_mmap_independent use the BO's shared mapping, as you suggested. Both backends in the tree set the flag.
  • Cost. Memory used for host image copies gets one more CPU mapping of its BO, made at the first copy. Binding maps nothing.

The same first map from other entry points. agx_bo_map() itself is reached unserialized from everywhere else that maps a BO, the Gallium driver included (two contexts mapping one shared resource), and from the fallback above. So the PR has a third commit, "asahi: map a BO once when two threads map it first at the same time, so no mapping leaks". agx_bo_map_placed() now makes a first mapping, or moves one to a placed address, under a new agx_device::bo_mmap_lock, and checks again under it. A BO already mapped where it is wanted still returns without the lock. The new mapping is made into a copy of the BO and stored after its _map_size, so a reader without the lock never sees a torn size or a transient MAP_FAILED.

I used a lock there rather than a compare-and-swap for one reason. The backend interface allows a backend that can't map a BO twice, which is the case the copies fall back for, and a CAS needs the losing thread to make a second mapping. The cost is one uncontended lock per first map of a BO. Mapping reuse, the BO cache's included, is unchanged.

2. dEQP-VK coverage. None of it catches either bug. I checked the CTS source:

  • dEQP-VK.image.host_image_copy.* never maps or unmaps the image's memory and copies from one thread.
  • dEQP-VK.memory.map_placed.* never does a host image copy.
  • dEQP-VK.image.concurrent_copy.* runs many threads copying into one image whose memory the application never maps. So it reaches the concurrent first map, but its results can't show a leaked mapping.

The host tests are the regression guard, and the PR body now says so. The table below includes a concurrent_copy sample, base against head.

3. Naming. Merged aurora-wip still uses hk: for the Vulkan driver's commits, so I kept it. Since 11-10 there are 212 non-merge subjects with hk in the prefix out of 439, and none use borealis:. dj's are 29 hk: out of 42, and f5012ba ("hk: report VK_DRIVER_ID_AURORA_BOREALIS") uses it too. In prose I use Borealis, as docs/drivers/asahi.rst does. If you'd like borealis: from now on, I'll switch all of ours.

Erik's Reported-by and Suggested-by stay on both of the first two commits. The first commit adds a Suggested-by for you, since its design is now yours.

Tests

Host (meson test --suite asahi, Vulkan configuration, 160 of 160 at each step; the packaged head with all four pull requests 211 of 211):

  • hk_host_image_copy now also runs two threads racing the first copy of one memory object, with the mock mapping held until both have mapped, and expects two mappings, one unmapped, and the same pointer in both. It also runs two threads making a BO's first shared mapping at once, and expects one mapping.
  • With the compare-and-swap replaced by a plain store, the test fails at the two-thread check. With commit 3's lock removed, it fails at the shared-mapping check.

On the Mac Studio, base against head, same boot:

Check Base Head
Host image copies after vkUnmapMemory2 crashes exact
... with an unrelated mapping now at the old range writes 65275 of its 65536 bytes leaves it unchanged, copies exact
... after a placed map, and after an unmap with VK_MEMORY_UNMAP_RESERVE_BIT_EXT crash exact; the reserved range stays reserved
Two threads copying while a third maps placed and unmaps, 50 rounds, 22917 maps crashes 0 errors, 0 texels wrong
Four threads making the first copies of a memory object, 50 rounds (maps at bind) one 256 KiB mapping added per round; the process's render-node mappings unchanged from round 1 to 50
dma-buf and opaque fd import of a 16 KiB object as 1 MiB accepted VK_ERROR_INVALID_EXTERNAL_HANDLE

All runs on the Mac Studio (M5 Ultra, J775D) in one boot, the pack's kernel on the 27.2 stub, with #362 alone (the base) and #362 with #363, #582 and #583 on top (the head) installed side by side, ASAHI_M5_HOST_ALIAS_STATIC=1 as before. Every case gave the same result on both builds, with no GPU faults:

Set Cases Pass Fail NotSupported
image.host_image_copy, 1 in 8 5310 1784 0 3526
memory.map_placed, api.external.memory, push_descriptor outside binding_model 693 419 0 274
binding_model push descriptor cases, 1 in 4 6538 6122 0 416
ycbcr, 1 in 8 8520 5634 0 2886
image.concurrent_copy, 1 in 40 6 5 0 1

The four pipeline.monolithic.push_descriptor.compute.incremental_updates* cases that failed with and without the series last time now pass on both. The 628-case render subset gives 571 Pass and 57 NotSupported on both.

The PR body is updated to match (the changes, the third commit, the coverage note and these rows).

@RyanTheTide RyanTheTide left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No blockers. Re-checked at cfae811 against c5ac4f4. Both points from our review are resolved. The design is sound.

  • Copy mapping: hk_device_memory_copy_map() gives the memory object its own agx_bo_map_owned() mapping, and the compare-and-swap installs the first one; the losing thread unmaps its own. vkMapMemory2/vkUnmapMemory2 never touch that mapping, so a placed map or an unmap on another thread can no longer pull memory out from under a running copy. hk_FreeMemory() unmapping bo->size matches what both backends map when there is no fixed address.
  • Commit 3: the double-checked lock in agx_bo_map_placed() closes the first-map leak for every caller, Gallium included. _map_size is written before the release store of _map, and the unlocked fast path reads with acquire, so a reader never sees a torn size.
  • CTS coverage: the note that no dEQP-VK case catches either bug, and that the host tests are the regression guard, is what we were after.

One small thing, not blocking. src/asahi/lib/agx_device.h:420-425: agx_bo_map_placed() now maps through a copy of the BO on every backend. The ops comment (agx_device.h:117-120) promises that only for backends with bo_mmap_independent, and a backend without the flag is the reason you gave for a lock instead of a CAS. Both backends set the flag today, so nothing breaks. Either call bo_mmap(bo->dev, bo, ...) directly when the flag is clear, or widen the ops comment so every backend must leave the source BO untouched.

On the hk: prefix: see our note on #363 (please use borealis:).

Assisted-by: LLM (Claude:Opus 5.5)

…d placed, on any thread

hk_image_plane_bind() kept agx_bo_map(mem->bo) plus the plane's offset
for the lifetime of the image, and vkCopyMemoryToImageEXT,
vkCopyImageToMemoryEXT and vkCopyImageToImageEXT copied through that
pointer. For memory that is neither exported nor imported, the BO's
mapping is also the one vkMapMemory2 gives the application:
vkUnmapMemory2 removes it, and a VK_EXT_map_memory_placed map moves it
to the address the application chose. A host image copy after either
went through a range that no longer maps the memory, and faulted or
accessed whatever had been mapped there since. Host image copies need
no external synchronization on the memory, so a copy on one thread
could also lose its mapping to a vkMapMemory2 or vkUnmapMemory2 on
another.

Give the copies a mapping of their own instead. The plane keeps its
memory object and its offset in the BO, and the first host image copy
of the memory maps the BO with agx_bo_map_owned(), a mapping that lives
until vkFreeMemory. vkMapMemory2 and vkUnmapMemory2 map, move and unmap
only the BO's shared mapping or the memory object's own, never the one
the copies use, so a range unmapped with VK_MEMORY_UNMAP_RESERVE_BIT_EXT
stays reserved and a copy is never left without its mapping. When two
threads copy at once into memory that no copy has mapped yet, both map
it: a compare-and-swap keeps the mapping installed first, and the other
is unmapped. Host memory, which stays where the application put it, and
a backend that cannot map a BO twice use the BO's shared mapping. A BO
that cannot be mapped fails the copy with VK_ERROR_MEMORY_MAP_FAILED.
Binding an image no longer maps its memory on the CPU.

The code is common to every GPU the driver supports, and the change is
the same on each. Memory that host image copies use gets one more CPU
mapping of its BO, at the first copy.

hk_host_image_copy covers copies after an unmap, through a placed
mapping, after an unmap that keeps the range reserved, a placed map
and an unmap while the copies' mapping exists, and two threads copying
into memory that no copy has mapped yet.

Reported-by: Erik Bourget <erik@ebourget.net>
Suggested-by: Erik Bourget <erik@ebourget.net>
Suggested-by: Ryan Murray <ryan@aurorasilicon.org>
Signed-off-by: Jeff Queisser <funkzy@users.noreply.github.com>
Importing an opaque fd or a dma-buf took the BO's size from the
imported object and kept the caller's allocationSize as the size of the
memory object, without comparing the two. An image bound to such memory
is checked against the BO (hk_image_plane_bind()), but a buffer is
bounded only by allocationSize, so a buffer bound to memory imported
with a size larger than the object addressed GPU memory past the end of
the BO.

Fail such an import with VK_ERROR_INVALID_EXTERNAL_HANDLE, as anv does,
releasing the BO and leaving the fd with the caller. Imports whose
object is at least allocationSize bytes are unchanged.

The code is common to every GPU the driver supports, and the change is
the same on each.

hk_memory_oom now also imports objects smaller than, equal to and
larger than allocationSize.

Reported-by: Erik Bourget <erik@ebourget.net>
Suggested-by: Erik Bourget <erik@ebourget.net>
Signed-off-by: Jeff Queisser <funkzy@users.noreply.github.com>
…so no mapping leaks

agx_bo_map() mapped a BO on its first use without serialization. Two
threads mapping one BO for the first time at once, such as two
contexts mapping a shared resource, each mapped it and stored their
mapping in the BO, so one mapping leaked and _map_size could be the
other thread's. The move of a mapping to a placed address
(agx_bo_map_placed()) wrote the same two fields the same way.

Map a BO, or move its mapping, under a device lock, and check again
under it; a BO already mapped where it is wanted is returned without the
lock, as before. On a backend with bo_mmap_independent the mapping is
made into a copy of the BO and stored after its size, so a thread that
finds it without the lock finds a whole mapping, never a failed one. A
backend without it maps the BO in place under the lock. This takes a
lock rather than installing the mapping with a compare-and-swap because
the backend interface allows one that cannot map a BO twice
(bo_mmap_independent), and a compare-and-swap needs the losing thread to
make a second mapping.

This runs for every GPU, in the Gallium and Vulkan drivers: an
uncontended lock on each first map of a BO. Mapping reuse, the BO
cache's included, is unchanged.

hk_host_image_copy now also maps a BO from two threads at once and
checks that it is mapped once, also on a backend without
bo_mmap_independent, where the BO itself must be the one mapped.

Signed-off-by: Jeff Queisser <funkzy@users.noreply.github.com>
@funkzy
funkzy force-pushed the pr/hk-host-copy-map branch from cfae811 to f246170 Compare November 21, 2026 01:55
@funkzy

funkzy commented Nov 21, 2026

Copy link
Copy Markdown
Author

Thanks. Fixed in the code rather than the comment, amended into the third commit: when bo_mmap_independent is clear, agx_bo_map_placed() now calls bo_mmap() on the BO itself under the lock, and only backends with the flag map through a copy. hk_host_image_copy adds a mock backend with the flag clear: two threads making the first map at once give one mapping, made into the source BO, and the test fails with the new branch removed. Both backends in the tree set the flag, so hardware behaviour is unchanged; the two hk: subjects are now borealis:, as on the other three.

@RyanTheTide

Copy link
Copy Markdown

Re-review of f246170: No blockers.

  1. agx_bo_map_placed() on a backend without bo_mmap_independent: resolved. src/asahi/lib/agx_device.h:422-435 now maps through a copy only when the flag is set and otherwise calls bo_mmap() on the BO itself under bo_mmap_lock, as the ops comment (agx_device.h:117-119) allows. The new hk_host_image_copy case with the flag cleared checks that two racing first maps give one in-place mapping into the source BO, and it fails with the branch removed. Both in-tree backends set the flag, so device behaviour is unchanged.
  2. Commit prefix: resolved. The two Vulkan driver commits now use borealis:; the shared-library commit keeps asahi:, which is right for src/asahi/lib.

Assisted-by: LLM (Claude:Opus 5.5)

@RyanTheTide

Copy link
Copy Markdown

M4 Pro (J616s, G17P) no-regression row. A = aurora-wip 17dbb475774, B = A + #567 #564 #565 #578 #582 #583 #413 #446 #427 #463 #574 (this PR at f2461709d29). Native release builds on the Mac, user-space overlay, same kernel (7.3.0-aurora-fleet77), 4 parallel deqp processes:

  • dEQP-VK, 125,000 cases on both builds: 0 Pass→Fail. 349 NotSupported→Pass (f16 cooperative matrix with native f16 accumulators from agx, borealis: G17P cooperative matrix with native f16 accumulators, one read per matrix element (pp512 +230%) #427, 333 cases; untyped pointers, 16). 5 synchronization2.timeline_semaphore.one_to_n cases flipped Timeout/ResourceError in both directions under parallel load; all 5 pass 3/3 standalone on both builds.
  • Covered: synchronization2.{op,signal_order,basic} (full), synchronization2.timeline_semaphore (2,281), query_pool (statistics 1 in 3, the rest full), image.host_image_copy (1 in 4), memory.{binding,map_memory,external_memory_host}, api.external.memory, device_group, push descriptors, ssbo.layout, robustness.buffer_access, compute.{pipeline,shader_object_*}, geometry.*, glsl.texture_functions.query, pipeline.pipeline_library (1 in 10).
  • GLES subset, 7,082 cases: identical (7,053 Pass).
  • 0 GPU firmware crashes, 0 GPU kernel errors.
  • x86 (clang + drm-shim), asahi + poly suites on B: 219/219.

@RyanTheTide

Copy link
Copy Markdown

J413 (Apple M2, G14G B0), one unchanged 13.5-path boot on Aurora Linux 7.3.0-aurora-fleet85. Vulkan CTS 1.4.7.1 (3fd4ea318fe2), with the installed Mesa 26.3.0-23 (be147e3625, ICD SHA-256 82e6d1112e5e3b56b…) and a process-local Mesa build containing this PR (efabab38502d, ICD SHA-256 736504fef5bf10a8…).

Set Cases per build Installed Mesa Mesa build containing this PR
Host image copy, three CTS chunks 18,000 5,916 Pass, 12,084 NotSupported Identical case for case
Historical Wayland presentation timing, actual eDP 15 15 Pass 15 Pass
G14G triangle 1 Pass Pass

The image run included all 9,456 names absent from both prior J413 archives, with 2,256 Pass and 7,200 NotSupported on both builds. No GPU faults, crashes, timeouts or SELinux denials in the four windows. The host regressions in this PR cover copy after unmap and placed-map behavior.

The separate 45-case focus reproduced subgroup termination Fail → Pass with the merged fix from #245. Conformance-version metadata remained the only Fail on the newer build and is tracked in #345.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants