Skip to content

asahi, borealis: do not offer a compute-only device for graphics - #585

Merged
RyanTheTide merged 5 commits into
aurora-wipfrom
satchlj/asahi-compute-only
Nov 29, 2026
Merged

RyanTheTide merged 5 commits into
aurora-wipfrom
satchlj/asahi-compute-only

Conversation

@satchlj

@satchlj satchlj commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

What: When the kernel reports DRM_ASAHI_FEATURE_COMPUTE_ONLY (bit 41, merged in aurora-silicon/linux#2610 at d7706b72c531), keep graphics APIs and render-only paths off that device while keeping Vulkan compute working:

  • Gallium (agx_pipe.c): report caps->graphics = false when agx_compute_only() is set.
  • Shared DRI/EGL (dri_screen.c, egl_dri2.c, platform_surfaceless.c): reject !pscreen->caps.graphics directly in dri_init_screen() (after assigning screen->base.screen so dri_destroy_screen() frees pscreen cleanly) so EGL, GLX, and GBM all fall back cleanly (e.g., to Zink or software) while Rusticl keeps opening compute screens through the pipe loader directly; remove the duplicate surfaceless check and clean up display_configs / dri_screen_display_gpu on render-screen creation failure.
  • Borealis (hk_physical_device.c, hk_image.c): drop VK_QUEUE_GRAPHICS_BIT from queue family 0; disable all 13 swapchain/present/timing/HDR extensions and their 8 features; clear pdev->wsi_device.queue_supports_blit = 0 after hk_init_wsi(pdev) so vkGetPhysicalDeviceSurfaceSupportKHR() reports VK_FALSE consistently across all WSI platforms; disable compression on multisampled images (samples > 1) so MSAA copies and uploads stay on the compute path instead of taking hk_copy_requires_gfx().

On kernels that do not set bit 41, all changes are no-ops (agx_compute_only() returns false).

Tested: 08aaa3e2e0ed (merged aurora-wip a0164c9101c)

Target / Mode Head Checks Result
Apple M5 Max (J775c, G17C B1, COMPUTE_ONLY unset) 08aaa3e2e0ed -Dbuildtype=release -Db_ndebug=false -Dbuild-tests=true -Dtools=asahi,drm-shim + meson test --suite asahi --suite poly; Borealis overlay deqp-vk (MESA_SHADER_CACHE_DISABLE=1: api.smoke.* 8/8, info.* 22/23, compute.pipeline.basic.* 80/81, resolve_image.whole_copy_before_resolving.* 6/12); EGL_PLATFORM=surfaceless eglinfo -B 337/342 unit/drm-shim tests PASS (5 pre-existing aurora-wip a0164c9101c nir_validate muladd_support failures at agx_compile.c:20037, unrelated to this PR); 116/124 VK CTS PASS (8 NotSupported, 0 fail); OpenGL 4.6 Core/Compat clean; 0 GPU faults
Apple M2 (J413, G14G B0, COMPUTE_ONLY unset) 99af00b0d59e gpubench-gl render.light, gpubench-vk compute.light + render.light, dEQP-VK.api.smoke.* (MESA_SHADER_CACHE_DISABLE=1) PASS (8/8 smoke, 0 GPU faults, 0 AVC, 0 failed units, Enforcing)
G14G DRM shim (COMPUTE_ONLY bit 41 forced set via LD_PRELOAD wrapper) 99af00b0d59e eglinfo -B (surfaceless, gbm), direct gbm_create_device + gbm_bo_create (llvmpipe fallback), glxinfo, Borealis VK queue/extension/surface-support probe PASS: asahi_dri rejects at dri_init_screen(), GBM/EGL/GLX fall back cleanly, Borealis exposes compute-only queue without VK_QUEUE_GRAPHICS_BIT, 0 swapchain/HDR extensions, vkGetPhysicalDeviceSurfaceSupportKHR == VK_FALSE
Apple M2 (J413, G14G, GPU firmware 27.2, bit 41 set by the kernel; see note) 08aaa3e2e0ed Borealis queue flags; dEQP-VK.api.info.*; dEQP-VK.api.copy_and_blit.* multisample/msaa/resolve with --deqp-compute-only=enable; eglinfo -B (GBM, surfaceless) PASS: no graphics bit on the queue; api.info 6880 pass / 0 fail; copy_and_blit MSAA/resolve 0 fail (all NotSupported: the compute-only device exposes no MSAA sample counts); EGL falls back to softpipe; 0 GPU faults (row)

Risk: two-way · AGX1/AGX2/AGX3 (gated on agx_compute_only() bit 41; strict no-op when bit 41 is unset; reverting restores pre-bit-41 behavior).

Note on bit 41 today: linux cb9cf343bc5d (G14 paired tiler/fragment render on firmware 27.2) made G14G stop reporting itself compute-only, so no current linux main kernel sets bit 41. The bit is still defined in the UAPI. This PR keeps Mesa correct on any kernel or firmware that does report it. The J413 row above re-applied bit 41 with a one-line test patch to the kernel.

@RyanTheTide RyanTheTide changed the title asahi, hk: do not offer a compute-only device for graphics asahi, borealis: do not offer a compute-only device for graphics 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. Selecting on the kernel feature bit instead of the chip is the right shape. I have one Vulkan-side gap and one note on merge order.

  1. src/asahi/vulkan/hk_physical_device.c:2402-2406: removing VK_QUEUE_GRAPHICS_BIT keeps the family COMPUTE|TRANSFER, but some copies that the spec allows on a compute/transfer queue still record a render on G14. hk_CmdCopyImage2 and the buffer-to-image upload pick the graphics meta path when hk_copy_requires_gfx(dst) is true (samples > 1 and a compressed layout; hk_cmd_meta.c:3289, 4618, 4840). On this device that sends DRM_ASAHI_CMD_RENDER, the kernel refuses it, and the app gets VK_ERROR_DEVICE_LOST from a command that is valid on its queue. The device also still reports multisample counts and the attachment format features that create such images. Fix: either route those copies through compute when agx_compute_only() (or fail them with a clear error at record time), or stop reporting sample counts > 1 and the COLOR/DEPTH_STENCIL_ATTACHMENT format features on a compute-only device, so that a compressed MSAA image can't be created. VK_KHR_swapchain and present support are still offered too. That is legal without a graphics family, but anything that blits on present would hit the same refusal. The simplest fix is to drop the swapchain extension when compute-only.
  2. include/drm-uapi/asahi_drm.h: bit 41 is defined here before linux#2610 has merged, and #567 claims bit 40 the same way. Please merge both after their kernel PRs, or note in the PR that the bit numbers are frozen there, so a renumber on the kernel side can't silently flip graphics off on some other device.

Evidence is good: queue flags and the 57 Skip-to-Pass compute-only dEQP-VK cases on J413 are a clear before/after. The GL half is honestly marked untested. A row exercising it (eglinfo/glxinfo under a kmsro or surfaceless client, showing the asahi screen skipped) would close it.

Assisted-by: LLM (Claude:Opus 5.5)

@RyanTheTide

Copy link
Copy Markdown

Selecting this by the kernel feature bit looks right to me, and the gallium and queue-family changes are consistent with each other. kmsro skips the screen, then zink also skips Borealis because the device no longer has a graphics queue. One gap in the Vulkan side:

  • src/asahi/vulkan/hk_cmd_meta.c:3289 hk_copy_requires_gfx() is still true for a multisampled, compressed image. vkCmdCopyImage then takes the graphics vk_meta path (hk_cmd_meta.c:4840-4844), which records a render command. A same-sample-count MSAA color copy is valid on a queue without VK_QUEUE_GRAPHICS_BIT. The device still advertises multisample color formats, so an app can create such an image (COLOR_ATTACHMENT usage makes it compressed) and copy it on the only queue. With this kernel the submit is refused. Two options: don't compress multisampled images when agx_compute_only(), or force the compute copy path there. The rest of the transfer paths I checked on G14 (image clears, buffer-to-image) already run on compute, and hk_defer_clear already excludes non-graphics families.
  • Testing: the compute run and the CTS subset are clear. Two things would round it out: dEQP-VK.api.copy_and_blit.* (at least the multisample image-to-image cases) on the compute-only queue, and one GL check of the fallback this PR enables. For example, surfaceless/GBM eglinfo -B or a kmsro client, showing the software driver picked instead of asahi.

Assisted-by: LLM (Claude:Opus 5.5)

@satchlj
satchlj force-pushed the satchlj/asahi-compute-only branch from 1e25fa3 to 9102326 Compare November 21, 2026 00:30
@satchlj

satchlj commented Nov 21, 2026

Copy link
Copy Markdown
Member Author

Claude Opus 5.5 on @satchlj's behalf.

Thanks to you both. New head 9102326 (rebased on aurora-wip afcc08b, which hasn't moved):

  • MSAA copies: on a compute-only device Borealis no longer compresses multisampled images (hk_can_compress()). hk_copy_requires_gfx() can then never be true there, so vkCmdCopyImage2 and buffer-to-image uploads into MSAA images take the compute path, as uncompressed ones already do. I chose this over forcing compute at the three call sites because the condition is decided once, where the layout is.
  • Present: VK_KHR_swapchain, its maintenance and mutable-format extensions, EXT_swapchain_maintenance1, incremental present and present id/wait are not offered on such a device, and their features are cleared.
  • Merge order: bit 41 is frozen pending linux#2610; this should merge after it. That's now in the PR body.
  • Wording: the first commit now says Borealis. Its message no longer claims the greeter came through kmsro: on phellos it was aquamarine using the render node directly, which this PR does not change.

Tested: compile, and the asahi host tests (140/141; the one failure is the same hk_query_copy mmap environment failure as on the baseline).

Not tested: dEQP-VK.api.copy_and_blit.* (multisample) on the compute-only queue, and an eglinfo -B row for the GL fallback. Both need phellos's GPU, and no GPU trials run there while Satya is away. They come first when trials resume.

@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-review of 9102326. Resolved: multisampled images are no longer compressed on a compute-only device, so hk_copy_requires_gfx() cannot be true there and MSAA copies and uploads take compute. KHR_swapchain and the main present extensions are dropped, and the merge order after linux#2610 is in the body.

  1. src/asahi/vulkan/hk_physical_device.c:2304-2320: three extensions that require VK_KHR_swapchain are still advertised on a compute-only device: EXT_present_timing (:290, with features presentTiming, presentAtRelativeTime and presentAtAbsoluteTime at :946-948), EXT_hdr_metadata (:262) and GOOGLE_display_timing (:331). Advertising an extension without its required extension breaks the dependency rules, and the CTS api.info extension checks will flag it. Fix: clear those three extensions and the three present-timing features in the same block.
  2. Testing is as you list it: the MSAA api.copy_and_blit cases on the compute-only queue and an eglinfo -B fallback row are still to run. Please also rerun info.txt on the new head, which would catch point 1.

HW row: M2 (G14G), if it is booted on GPU firmware 27.2 with a linux#2610 kernel: dEQP-VK.api.copy_and_blit.*multisample* and dEQP-VK.api.info.* with --deqp-compute-only=enable, plus surfaceless eglinfo -B. Pass = no Fail/Crash, no render-submit EINVAL in the journal, and a non-asahi GL renderer.

Assisted-by: LLM (Claude:Opus 5.5)

@satchlj

satchlj commented Nov 21, 2026

Copy link
Copy Markdown
Member Author

Codex GPT-6.2 Sol on @satchlj's behalf.

Thanks @RyanTheTide. In e25bb5da0b7c, Borealis now disables VK_EXT_hdr_metadata, VK_EXT_present_timing, and VK_GOOGLE_display_timing on compute-only devices, along with presentTiming, presentAtRelativeTime, and presentAtAbsoluteTime. I checked the bundled Vulkan registry against Borealis's advertised extensions and found no remaining swapchain dependents enabled on that path.

The incremental aarch64 Linux build compiled hk_physical_device.c and linked libvulkan_asahi.so with X11 and Wayland enabled. The Asahi host suite passed 140/141 tests. hk_query_copy reproduced the baseline mmap failure in test_large_stride.

This head is untested on hardware. The Vulkan CTS info cases (info.txt), multisample copies on the compute-only queue, and surfaceless eglinfo -B fallback are pending the next hardware session.

@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-review of e25bb5d: point 1 from the last review is resolved. EXT_hdr_metadata, EXT_present_timing and GOOGLE_display_timing are now cleared with KHR_swapchain on a compute-only device (hk_physical_device.c:2315-2317), along with the three present-timing features (:2322-2324). I checked the rest of the advertised list at this head and found no other extension that requires VK_KHR_swapchain still on.

Still open, unchanged: the hardware rows (api.info.* on this head, the MSAA api.copy_and_blit cases on the compute-only queue, surfaceless eglinfo -B), and the merge order after linux#2610, which is still open. Same HW row as before: M2 (G14G) on GPU firmware 27.2 with a linux#2610 kernel. Pass = no Fail/Crash, no render-submit EINVAL in the journal, and a non-asahi GL renderer.

Assisted-by: LLM (Claude:Opus 5.5)

@RyanTheTide

Copy link
Copy Markdown

Blockers: 2.

  1. Commit trailers: ec390c9 and 9102326 end with Co-Authored-By: Claude Opus 5.5, and e25bb5d with Co-Authored-By: Codex GPT-6.2 Sol. Commits should carry only the human author and Signed-off-by. Put the tool note in the PR body as its last line, Assisted-by: LLM (<Vendor>:<Model>). The body currently ends with a "Generated with Claude Code" line.
  2. The branch no longer merges. include/drm-uapi/asahi_drm.h conflicts with aurora-wip, which has since added DRM_ASAHI_FEATURE_VDM_USC_INVALIDATE (bit 40) at the same spot. Rebase and put bit 41 after bit 40. linux#2610 is still open, so the merge order in the body still applies.
  3. Not a blocker, but the commit message should say it: only two loaders read caps.graphics, kmsro_drm_winsys.c:146 and platform_surfaceless.c:303. Neither the DRI frontend nor GBM nor the Wayland/X11 EGL platforms refuse a screen with graphics = false. A GL client that opens the render node directly (as aquamarine does) still gets asahi, and its renders are still refused. Please write "kmsro and EGL surfaceless fall back", not "the loaders skip it".

Code otherwise checked at e25bb5d: the swapchain-dependent extension list is complete for what Borealis advertises, hk_can_compress() keeps MSAA images off the graphics copy path, and nothing selects by chip. No CI checks are reported on this branch.

HW row: M2 (J413, G14G) on GPU firmware 27.2 with a linux#2610 kernel, at the rebased head: dEQP-VK.api.info.* and dEQP-VK.api.copy_and_blit.*multisample* with --deqp-compute-only=enable, plus surfaceless eglinfo -B. Pass = 0 Fail/Crash, no render-submit EINVAL in the journal, a non-asahi GL renderer.

Assisted-by: LLM (Claude:Opus 5.5)

@satchlj
satchlj force-pushed the satchlj/asahi-compute-only branch from e25bb5d to 055daf2 Compare November 22, 2026 02:37
@satchlj

satchlj commented Nov 22, 2026

Copy link
Copy Markdown
Member Author

Claude Opus 5.5 on @satchlj's behalf. Trailer-only rewrite, --force-with-lease from e25bb5da to 055daf22, every commit's tree unchanged: dropped three Co-Authored-By: lines; Satya's Signed-off-by kept. The body now ends with Assisted-by: and no emoji footer, per the agent guidelines' pre-PR checklist §4.

Assisted-by: LLM (Anthropic:Claude Opus 5.5)

@DjDeveloperr DjDeveloperr 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.

Full §1–§6 pre-PR checklist review at 055daf22b02783a92a06420c04f62c6e20c52d9f.

Blockers

  1. Merge conflicts with aurora-wip (DIRTY): the branch no longer applies cleanly against current aurora-wip (acd6874dae55) in two files:
    • include/drm-uapi/asahi_drm.h:454 — conflicts with DRM_ASAHI_FEATURE_VDM_USC_INVALIDATE ((1ULL) << 40, landed via #567). Rebase and place DRM_ASAHI_FEATURE_COMPUTE_ONLY (bit 41) after bit 40.
    • src/asahi/lib/agx_device.h:568 — conflicts with the removal of agx_native_graphics() (75b186e77).
  2. Kernel UAPI dependency still open: aurora-silicon/linux#2610 (which defines DRM_ASAHI_FEATURE_COMPUTE_ONLY as bit 41) is still OPEN. As noted in the PR body, this PR cannot merge until linux#2610 lands so bit 41 is locked in the kernel UAPI.
  3. §5 Evidence incomplete for commits 2 and 3:
    • Only commit 1 (1e25fa36) was exercised on hardware (vkcompute + 195-case dEQP-VK subset on J413). Commits 2 (2e5aea9c, disabling MSAA compression in hk_can_compress()) and 3 (055daf22, disabling swapchain/present/timing/HDR extensions and features) are compile + host-test only.
    • Still needed on the rebased head on J413 (M2, G14G, GPU firmware 27.2 + linux#2610):
      • dEQP-VK.api.info.* (or info.txt) verifying extension/feature dependency checks pass with swapchain/present/timing/HDR extensions cleared.
      • dEQP-VK.api.copy_and_blit.*multisample* with --deqp-compute-only=enable, confirming 0 Fail/Crash and 0 render-submit EINVAL in the kernel journal.
      • Surfaceless eglinfo -B (or a kmsro client) exercising the Gallium caps->graphics = false path and confirming Asahi is skipped for a non-Asahi GL renderer.
      • A sanity regression check on a non-compute-only Mac (bit 41 unset) confirming no regressions.

Technical & Polish Findings

  1. WSI surface support remains advertised on compute-only devices (src/asahi/vulkan/hk_physical_device.c:2488): hk_init_wsi(pdev) is still called unconditionally, and wsi_device_init() (src/vulkan/wsi/wsi_common.c:162-165) sets wsi->queue_supports_blit for any queue family with GRAPHICS | COMPUTE | TRANSFER. Because family 0 retains COMPUTE | TRANSFER, vkGetPhysicalDeviceSurfaceSupportKHR() will still report VK_TRUE even though VK_KHR_swapchain and all present extensions are disabled. Clearing pdev->wsi_device.queue_supports_blit = 0; after hk_init_wsi(pdev) when agx_compute_only(&pdev->dev) (keeping wsi_device initialized so wsi_GetPhysicalDeviceSurfaceSupportKHR does not dereference NULL) will make surface-support queries report VK_FALSE consistently.
  2. Comment / commit-message accuracy (src/gallium/drivers/asahi/agx_pipe.c & commit 4948c8c5): the inline comment still states "kmsro and the EGL/GBM loaders skip a screen without graphics" and commit 1 says "kmsro and EGL already skip". In Mesa, only kmsro_drm_winsys.c:146 and platform_surfaceless.c:303 check caps.graphics (GBM and Wayland/X11 EGL platforms do not). Please tighten both to say "kmsro and EGL surfaceless".
  3. Future-proofing note for non-G14 chips (§1): hk_can_compress() disabling compression for samples > 1 keeps G14 off hk_copy_requires_gfx() (and clears/non-MSAA copies already run on compute on G14). Note that if a future AGX3/M5/G18G kernel ever advertises DRM_ASAHI_FEATURE_COMPUTE_ONLY, hk_xfer_copybuffertoimage2() (src/asahi/vulkan/hk_cmd_meta.c:4640,4704) and hk_xfer_copyimage2() (:4862) still unconditionally select gfx = true on those chips.

Checklist Summary (§1–§6)

  • §1 No model gating: Pass — capability-gated via DRM_ASAHI_FEATURE_COMPUTE_ONLY / agx_compute_only().
  • §2 Production-ready: Pass (modulo WSI queue_supports_blit consistency above).
  • §3 Safety: Pass.
  • §4 Clean-room & attribution: Pass — 055daf22 cleaned all commit trailers; all 3 commits carry only human author/committer + human Signed-off-by:.
  • §5 Evidence: Blocked — commits 2–3 untested on hardware; GL fallback and rebased-head CTS rows still open.
  • §6 Naming: Pass — Borealis used throughout (hk_* symbols tracked in #591).

Assisted-by: LLM (Gemini 4 Neon)

@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.

Independent source review at 055daf22b027. The queue and extension clamp follows the backend's capability bit. Compute-only still initializes common WSI, which derives surface support from compute/transfer queue flags. Please align the surface-support answer with the disabled present extensions, and verify a normal GBM login as well as surfaceless EGL, Vulkan compute and multisample copies. The kernel capability in linux#2610 and a current aurora-wip integration are prerequisites for that row.

@RyanTheTide

RyanTheTide commented Nov 23, 2026 •

Copy link
Copy Markdown

I built 055daf22b027 and a local integration on aurora-wip efabab38502d. The G14G DRM shim exposes the same device with bit 41 clear or set. The results below are host-side capability and loader checks.

Build and feature value Vulkan queue flags Swapchain / headless surface support Surfaceless EGL renderer EGL on a caller-supplied GBM device
Exact PR head, clear 0xf yes / yes Apple M2 Apple M2
Exact PR head, set 0xe no / yes softpipe Apple M2
Tip integration with the WSI mask fix, set 0xe no / no softpipe Apple M2
Same integration with the GBM capability check, clear 0xf yes / yes Apple M2 Apple M2
Same integration with the GBM capability check, set 0xe no / no softpipe softpipe

The GBM row used a GLES2 context on the shim render node. With the fallback, an FBO cleared to red read back RGBA 255,0,0,255 with no GL error. The supplied-device path currently accepts the non-graphics screen after driCreateNewScreen3(). Rejecting that screen there hands selection back to the existing Zink/software fallback.

Validated GBM change
diff --git a/src/gbm/backends/dri/gbm_dri.c b/src/gbm/backends/dri/gbm_dri.c
index 755f3ca3fed..8c80160f212 100644
--- a/src/gbm/backends/dri/gbm_dri.c
+++ b/src/gbm/backends/dri/gbm_dri.c
@@ -245,6 +245,15 @@ static const __DRIextension *gbm_dri_screen_extensions[] = {
    NULL,
 };
 
+static void
+dri_screen_destroy(struct gbm_dri_device *dri)
+{
+   driDestroyScreen(dri->screen);
+   for (unsigned i = 0; dri->driver_configs[i]; i++)
+      free((struct dri_config *) dri->driver_configs[i]);
+   free(dri->driver_configs);
+}
+
 static int
 dri_screen_create_for_driver(struct gbm_dri_device *dri, char *driver_name, bool driver_name_is_inferred)
 {
@@ -271,6 +280,11 @@ dri_screen_create_for_driver(struct gbm_dri_device *dri, char *driver_name, bool
    if (dri->screen == NULL)
       goto fail;
 
+   if (!dri->screen->base.screen->caps.graphics) {
+      dri_screen_destroy(dri);
+      goto fail;
+   }
+
    dri->lookup_user_data = NULL;
 
    return 0;
@@ -1182,15 +1196,11 @@ static void
 dri_destroy(struct gbm_device *gbm)
 {
    struct gbm_dri_device *dri = gbm_dri_device(gbm);
-   unsigned i;
 
    if (dri->context)
       driDestroyContext(dri->context);
 
-   driDestroyScreen(dri->screen);
-   for (i = 0; dri->driver_configs[i]; i++)
-      free((struct dri_config *) dri->driver_configs[i]);
-   free(dri->driver_configs);
+   dri_screen_destroy(dri);
    free(dri->driver_name);
 
    free(dri);

A separate DRM-shim probe submitted a 128×128 RGBA8 four-sample image copy on both builds. Bit 41 clear produced one render command. Bit 41 set produced one compute command and zero render commands. All four submissions returned success. Image contents still need native hardware verification.

The integration retains UAPI bits 39 and 40 and the current Gallium mipmap capability. The remaining hardware checks are a normal GBM login on the compute-only kernel, Vulkan compute and multisample copies. Linux #2610 supplies bit 41.

Assisted-by: LLM (Codex)

@RyanTheTide

Copy link
Copy Markdown

The direct-GBM fix can live in the shared DRI screen constructor. EGL, GLX and GBM all create graphics screens through this constructor. Rejecting a Gallium screen with caps.graphics == false there sends it through the caller's existing error or fallback path. The surfaceless platform can drop its duplicate check. Rusticl still creates its screen directly through the pipe loader.

The attached patch also releases the secondary EGL display screen if render-screen creation fails. It applies to both 055daf22b027 and efabab38502d.

G14G DRM shim Surfaceless EGL EGL on caller-supplied GBM Swapchain and headless support Present features
Bit 41 clear Apple M2 Apple M2 Both advertised 8/8
Bit 41 set softpipe softpipe. Pixel readback RGBA 255,0,0,255 Both disabled 0/8

The current-tip build includes the WSI queue-mask correction. In the compute-only arm, all 10 previously advertised extensions with a direct Vulkan registry dependency on swapchain were removed. The other 141 device extensions stayed advertised. G13 and G17P shim controls also retained the Apple renderer on both EGL platforms.

Apply-ready shared DRI patch
diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c
index d25a3724e14..745041abcae 100644
--- a/src/egl/drivers/dri2/egl_dri2.c
+++ b/src/egl/drivers/dri2/egl_dri2.c
@@ -820,9 +820,15 @@ dri2_create_screen(_EGLDisplay *disp)
           * will not crash.
           */
          if (strcmp(dri2_dpy->driver_name, driver_name_display_gpu) == 0) {
+            const struct dri_config **display_configs = NULL;
             dri2_dpy->dri_screen_display_gpu = driCreateNewScreen3(
                0, dri2_dpy->fd_display_gpu, dri2_dpy->loader_extensions,
-               type, &dri2_dpy->driver_configs, false, dri2_dpy->multibuffers_available, disp);
+               type, &display_configs, false, dri2_dpy->multibuffers_available, disp);
+            if (display_configs) {
+               for (unsigned i = 0; display_configs[i]; i++)
+                  free((struct dri_config *)display_configs[i]);
+               free(display_configs);
+            }
          }
          free(driver_name_display_gpu);
       }
@@ -834,6 +840,8 @@ dri2_create_screen(_EGLDisplay *disp)
       &dri2_dpy->driver_configs, false, dri2_dpy->multibuffers_available, disp);
 
    if (dri2_dpy->dri_screen_render_gpu == NULL) {
+      driDestroyScreen(dri2_dpy->dri_screen_display_gpu);
+      dri2_dpy->dri_screen_display_gpu = NULL;
       _eglLog(_EGL_WARNING, "egl: failed to create dri2 screen");
       return EGL_FALSE;
    }
diff --git a/src/egl/drivers/dri2/platform_surfaceless.c b/src/egl/drivers/dri2/platform_surfaceless.c
index 8fbb9a60ed4..af0befcabc8 100644
--- a/src/egl/drivers/dri2/platform_surfaceless.c
+++ b/src/egl/drivers/dri2/platform_surfaceless.c
@@ -300,23 +300,6 @@ surfaceless_probe_device(_EGLDisplay *disp, bool swrast, bool zink)
             goto retry;
          }
 
-         if (!dri2_dpy->dri_screen_render_gpu->base.screen->caps.graphics) {
-
-            _eglLog(_EGL_DEBUG, "DRI2: Driver %s doesn't support graphics, skipping.", dri2_dpy->driver_name);
-
-            if (dri2_dpy->dri_screen_display_gpu != dri2_dpy->dri_screen_render_gpu) {
-               driDestroyScreen(dri2_dpy->dri_screen_display_gpu);
-               dri2_dpy->dri_screen_display_gpu = NULL;
-            }
-
-            driDestroyScreen(dri2_dpy->dri_screen_render_gpu);
-            dri2_dpy->dri_screen_render_gpu = NULL;
-
-            dri2_dpy->own_dri_screen = false;
-
-            goto retry;
-         }
-
          break;
       }
 
diff --git a/src/gallium/frontends/dri/dri_screen.c b/src/gallium/frontends/dri/dri_screen.c
index 6087422c7f9..4d2c6623e84 100644
--- a/src/gallium/frontends/dri/dri_screen.c
+++ b/src/gallium/frontends/dri/dri_screen.c
@@ -624,6 +624,10 @@ dri_init_screen(struct dri_screen *screen,
                 bool has_multibuffer)
 {
    screen->base.screen = pscreen;
+   /* EGL, GLX and GBM require a graphics-capable Gallium screen. */
+   if (!pscreen->caps.graphics)
+      return NULL;
+
    screen->base.get_egl_image = dri_get_egl_image;
    screen->base.get_param = dri_get_param;
    screen->base.set_background_context = dri_set_background_context;

The host rows cover renderer selection and software readback. A native compositor login, mixed display/render nodes and image contents from compute-only MSAA copies still need hardware coverage together with the kernel capability.

A kernel that refuses render commands on a device (the G14 runtime on
GPU firmware 27.2) reports DRM_ASAHI_FEATURE_COMPUTE_ONLY. Without a
check, the device is taken for graphics: on Apple M2 with that runtime,
the greeter's renders on the render node failed with EINVAL and
Hyprland and sddm-greeter-qt aborted.

On such a device:
- the Gallium screen reports caps.graphics = false. kmsro and EGL
  surfaceless already skip a screen without graphics, as for etnaviv's
  compute-only cores, and fall back to another driver, in the end
  software.
- Borealis's queue family drops VK_QUEUE_GRAPHICS_BIT, so Vulkan
  graphics clients, zink among them, pass over the device, while
  compute keeps its queue.

Kernels without the bit are unaffected.

Signed-off-by: Satya Benson <satya@benson.earth>
…aphics path

On a device that reports DRM_ASAHI_FEATURE_COMPUTE_ONLY, the kernel
refuses render commands. Two Borealis paths still exposed or recorded
them:

- A copy or buffer-to-image upload into a multisampled, compressed image
  takes the graphics meta path (hk_copy_requires_gfx()). Such a copy is
  valid on the compute and transfer family the device now exposes, so
  the app would get VK_ERROR_DEVICE_LOST. Multisampled images are no
  longer compressed on a compute-only device, so these copies run on
  compute, as copies into uncompressed images already do.
- Presenting can blit through the same path. The swapchain and present
  extensions (KHR_swapchain and its maintenance and mutable-format
  extensions, EXT_swapchain_maintenance1, incremental present, present
  id/wait, EXT_hdr_metadata, EXT_present_timing, and
  GOOGLE_display_timing) and their features are not offered on such a
  device, and wsi_device.queue_supports_blit is cleared after
  hk_init_wsi() so vkGetPhysicalDeviceSurfaceSupportKHR() reports
  VK_FALSE consistently.

No other device reports the bit, so nothing else changes.

Reported by Ryan Murray in review.

Signed-off-by: Satya Benson <satya@benson.earth>
EGL, GLX and GBM all create graphics screens through dri_init_screen().
Previously, only kmsro and EGL surfaceless checked caps.graphics, so
GBM and the other EGL/GLX loaders accepted a compute-only Gallium screen
whose kernel refuses render commands.

Reject a Gallium screen with caps.graphics == false directly in
dri_init_screen(), after assigning screen->base.screen so
dri_destroy_screen() releases pscreen cleanly on failure. Callers then
take their existing error or fallback paths (for example Zink or
software rendering), while Rusticl continues to open compute screens
through the pipe loader directly.

Drop the now-duplicate caps.graphics check in EGL's surfaceless
platform, and in dri2_create_screen() avoid leaking the display GPU's
temporary driver_configs or leaving dri_screen_display_gpu alive when
render-screen creation fails.

Suggested by Ryan Murray in review.

Signed-off-by: Satya Benson <satya@benson.earth>
@satchlj
satchlj force-pushed the satchlj/asahi-compute-only branch from 055daf2 to 99af00b Compare November 24, 2026 17:55
@satchlj
satchlj requested review from a team as code owners November 24, 2026 17:55
@satchlj
satchlj requested review from Acelogic and malik-na November 24, 2026 17:55
@satchlj

satchlj commented Nov 24, 2026

Copy link
Copy Markdown
Member Author

Rebased onto aurora-wip (e775d773684d) and updated to 99af00b0d59e (d94c07ae -> 756a1400 -> 99af00b0), addressing the open review items:

Changes at 99af00b0d59e

  • Rebase & UAPI ordering (d94c07ae): Resolved include/drm-uapi/asahi_drm.h (DRM_ASAHI_FEATURE_COMPUTE_ONLY bit 41 placed cleanly between bit 40 DRM_ASAHI_FEATURE_VDM_USC_INVALIDATE and bit 42 DRM_ASAHI_FEATURE_COMPUTE_MULTI_CHANNEL) and src/asahi/lib/agx_device.h (post-agx_native_graphics() removal). Tightened commit 1 and agx_pipe.c wording.
  • WSI surface support consistency (756a1400): Consolidated all 13 swapchain/present/timing/HDR extensions and 8 features under the agx_compute_only() guard and cleared pdev->wsi_device.queue_supports_blit = 0; after hk_init_wsi(pdev) so vkGetPhysicalDeviceSurfaceSupportKHR() reports VK_FALSE consistently with disabled present extensions.
  • Shared DRI screen rejection (99af00b0): Applied the shared dri_init_screen() !pscreen->caps.graphics rejection in src/gallium/frontends/dri/dri_screen.c (after screen->base.screen = pscreen so dri_destroy_screen() releases pscreen cleanly), dropped the now-duplicate surfaceless check in src/egl/drivers/dri2/platform_surfaceless.c, and freed temporary display_configs / released dri_screen_display_gpu on render-screen creation failure in src/egl/drivers/dri2/egl_dri2.c.
  • AGX3/M5/G18G note: Left hk_xfer_copybuffertoimage2() / hk_xfer_copyimage2() unchanged on AGX3/M5/G18G because those chips do not implement the AGX2 compute imageblock copy path.

Verification at 99af00b0d59e

  • Host unit & DRM-shim suite (non-layout asahi): 269/269 PASS (excluding asahi_layout_tests / agx3_layout due to pre-existing GCC 16 failure).
  • DRM-shim capability, copy-path, and EGL/GBM fallback matrix (exercised with a temporary shim harness toggling bit 41 and rejecting DRM_ASAHI_CMD_RENDER with EINVAL when set):
Profile / bit 41 Vulkan qf0 flags Swapchain/present exts Headless surface support 4x MSAA 128×128 copy submit Surfaceless EGL Direct-GBM EGL
G14G, clear 0xf 11 advertised (161 total) VK_TRUE 1 render / 0 compute (VK_SUCCESS) Apple M2 (G14G A0) Apple M2 (G14G A0)
G14G, set 0xe 0 advertised (150 total) VK_FALSE 0 render / 1 compute (VK_SUCCESS) softpipe softpipe (FBO clear readback RGBA 255,0,0,255, GL_NO_ERROR)
G17P, clear 0xf 11 advertised (169 total) VK_TRUE 1 render / 0 compute (VK_SUCCESS) Apple A18 Pro (G17P A0) Apple A18 Pro (G17P A0)
G13G, clear 0xf 11 advertised (161 total) VK_TRUE 1 render / 0 compute (VK_SUCCESS) Apple M1 (G13G A0) Apple M1 (G13G A0)
  • G14G DRM-shim (bit 41 set) dEQP-VK.info.*: 20/20 supported PASS (0 Fail, 3 NotSupported, including device_extension_dependencies).
  • Live Apple M5 Max (G17C B1, bit 41 unset, Linux 7.3, MESA_SHADER_CACHE_DISABLE=1, 0 kernel GPU faults):
    • dEQP-VK.info.*: 22/22 supported PASS (1 NotSupported)
    • dEQP-VK.compute.pipeline.basic.*: 80/80 supported PASS (1 NotSupported)
    • dEQP-VK.api.copy_and_blit.core.resolve_image.whole_copy_before_resolving.*: 6/6 supported PASS (6 NotSupported)
    • dEQP-VK.api.copy_and_blit.copy_commands2.resolve_image.whole_copy_before_resolving.*: 3/3 supported PASS (3 NotSupported)
    • dEQP-GLES3.info.renderer: 1/1 PASS (Apple M5 Max (G17C B1))
    • dEQP-GLES3.functional.fbo.msaa.4_samples.*: 22/22 PASS

Remaining before merge

  • aurora-silicon/linux#2610 (locking bit 41 in kernel UAPI) is still open; this PR remains gated on #2610.
  • Native Apple M2 (G14G, GPU firmware 27.2 + linux#2610) hardware verification for a normal GBM compositor login, mixed display/render nodes, and pixel-level MSAA copy image contents on the compute-only kernel remains untested here.

@RyanTheTide

Copy link
Copy Markdown

99af00b J413 (M2 Air, G14G B0, 13.5 fw / fleet88, COMPUTE_ONLY unset) PASS: gpubench-gl render.light 280.3 us ok, gpubench-vk compute.light 122.0 us ok + render.light 226.6 us ok, dEQP-VK.api.smoke.* 8/8 pass; MESA_SHADER_CACHE_DISABLE=1, 0 GPU faults, 0 AVC, 0 failed units, Enforcing.

@satchlj

satchlj commented Nov 25, 2026

Copy link
Copy Markdown
Member Author

aurora-silicon/linux#2610 has now merged (d7706b72c531), locking DRM_ASAHI_FEATURE_COMPUTE_ONLY at bit 41 in kernel UAPI.

Updated the PR description at 99af00b0d59e (leaving the commit SHA intact so the J413 99af00b0d59e PASS row stays valid on this exact head) and re-verified on Apple M5 Max (J775c, G17C B1, COMPUTE_ONLY unset):

  • -Dbuildtype=release -Db_ndebug=false build & tests: 189/189 built --suite asahi --suite poly tests PASS (0 fail; asahi_layout_tests skipped solely due to the pre-existing GCC 16 designator-order error on base e775d773 already fixed on current aurora-wip).
  • Borealis deqp-vk (MESA_SHADER_CACHE_DISABLE=1): 119/130 PASS, 11 NotSupported, 0 Fail (info.* 22/23, api.smoke.* 8/8, compute.pipeline.basic.* 80/81, resolve_image.whole_copy_before_resolving.* 6/12 + 3/6), 0 kernel GPU faults.
  • Gallium EGL (eglinfo -B against built dri/egl/gbm): OpenGL 4.6 Core/Compatibility and OpenGL ES 3.2 initialize cleanly under both EGL_PLATFORM=surfaceless and EGL_PLATFORM=gbm.
  • WSI & DRI teardown check: Verified wsi_GetPhysicalDeviceSurfaceSupportKHR() (src/vulkan/wsi/wsi_common.c:1118) ANDs every platform's get_support() result with wsi_device->queue_supports_blit, so clearing queue_supports_blit = 0 after hk_init_wsi(pdev) aligns surface support (VK_FALSE) across all WSI platforms; dri_init_screen() returning NULL cleanly destroys pscreen in dri_util.c:152-154, and driDestroyScreen() is NULL-safe.

Ready for re-review (@DjDeveloperr, @RyanTheTide). Note that native M2 (G14G, GPU firmware 27.2 + merged linux#2610) hardware coverage for normal GBM login and compute-only MSAA pixel contents remains honestly listed under Not yet.

@RyanTheTide

Copy link
Copy Markdown

Re-check of the items in Dj's 11-22 review, at 99af00b (merges cleanly onto aurora-wip e1b5658):

  1. Conflicts: resolved. DRM_ASAHI_FEATURE_COMPUTE_ONLY sits at bit 41, after bit 40.
  2. Kernel UAPI: linux#2610 was merged on 11-24.
  3. WSI: fixed (checked in the code). hk_physical_device.c clears pdev->wsi_device.queue_supports_blit when agx_compute_only().
  4. Comments: fixed. agx_pipe.c and the commit messages now name kmsro and the shared DRI screen constructor, and dri_init_screen() returns NULL for !caps.graphics, which covers EGL, GLX and GBM.
  5. Answered in the body (the AGX3 copy paths stay as they are).

Still open: item 3, a row at this head on a G14G with GPU firmware 27.2 and linux#2610, so bit 41 is set. It should cover dEQP-VK.api.info.* and dEQP-VK.api.copy_and_blit.*multisample* with --deqp-compute-only=enable (0 Fail/Crash, 0 render-submit EINVAL in the journal), plus surfaceless eglinfo -B and a GBM compositor login. The bit-41-clear J413 no-regression row is already in the body.

…ompute-only

Signed-off-by: Satya Benson <satya@benson.earth>

# Conflicts:
#	src/asahi/lib/agx_device.h
@satchlj

satchlj commented Nov 27, 2026 •

Copy link
Copy Markdown
Member Author

Merged aurora-wip (c32b91576ac) into satchlj/asahi-compute-only at 6334deef (conflict-only merge in src/asahi/lib/agx_device.h, keeping both agx_compute_only() and agx_cdm_ordering_memory_scope()). Verified on Apple M5 Max (J775c, G17C B1, COMPUTE_ONLY unset): meson test --suite asahi --suite poly passes 223/223 (0 fail). Item 3 (G14G firmware 27.2 bit-41-set hardware row) remains open for a G14G machine.

@satchlj
satchlj requested a review from a team as a code owner November 27, 2026 13:28
@satchlj

satchlj commented Nov 27, 2026

Copy link
Copy Markdown
Member Author

Exact-head 6334deefeef2 verification on Apple M5 Max (J775c, G17C B1, COMPUTE_ONLY unset):

  • Build (-Dbuildtype=release -Db_ndebug=false -Dbuild-tests=true -Dtools=asahi,drm-shim): MALLOC_PERTURB_=42 meson test --suite asahi --suite poly 341/341 PASS (0 fail).
  • Live Borealis overlay ICD (MESA_SHADER_CACHE_DISABLE=1): dEQP-VK.api.smoke.* 8/8 PASS, dEQP-VK.info.* 22/23 PASS (1 NotSupported), dEQP-VK.compute.pipeline.basic.* 80/81 PASS (1 NotSupported), dEQP-VK.api.copy_and_blit.core.resolve_image.whole_copy_before_resolving.* 6/12 PASS (6 NotSupported) — 116 PASS / 0 FAIL / 0 GPU faults.
  • EGL_PLATFORM=surfaceless eglinfo -B: OpenGL 4.6 Core/Compat (Apple M5 Max (G17C B1), git-6334deefee), clean.

Updated the PR description Tested: table to exact head 6334deefeef2. All code review items from the Nov 22/23 reviews are addressed (queue_supports_blit = 0, shared dri_init_screen() rejection, linux#2610 merged, conflicts resolved). Only a real G14G firmware 27.2 bit-41-set hardware row remains open.

…ompute-only

Resolve conflict in include/drm-uapi/asahi_drm.h by keeping both
DRM_ASAHI_FEATURE_COMPUTE_ONLY (bit 41) and
DRM_ASAHI_FEATURE_TILE_BUFFER_48K (bit 46).

Signed-off-by: Satya Benson <satya@benson.earth>
@satchlj

satchlj commented Nov 27, 2026

Copy link
Copy Markdown
Member Author

Resolved the aurora-wip merge conflict at 08aaa3e2e0ed (merged aurora-wip a0164c9101c, keeping both DRM_ASAHI_FEATURE_COMPUTE_ONLY bit 41 and DRM_ASAHI_FEATURE_TILE_BUFFER_48K bit 46 in include/drm-uapi/asahi_drm.h; git diff --stat origin/aurora-wip..HEAD unchanged: 8 files, +87 -18).

Exact-head 08aaa3e2e0ed verification on Apple M5 Max (J775c, G17C B1, COMPUTE_ONLY unset):

  • Build (-Dbuildtype=release -Db_ndebug=false -Dbuild-tests=true -Dtools=asahi,drm-shim): meson test --suite asahi --suite poly 337/342 PASS. The 5 failures (hk-g17p-bind-tail-state-change, hk-g16g-indirect-multi, hk-g17p-indirect-multi-stream, hk-g15s-indirect-multi, hk-g17p-indirect-multi) are a pre-existing -Db_ndebug=false nir_validate failure on origin/aurora-wip a0164c9101c (muladd_support after nir_opt_dce at agx_compile.c:20037), unrelated to this PR's 8 files.
  • Live Borealis overlay ICD (MESA_SHADER_CACHE_DISABLE=1): dEQP-VK.api.smoke.* 8/8 PASS, dEQP-VK.info.* 22/23 PASS (1 NotSupported), dEQP-VK.compute.pipeline.basic.* 80/81 PASS (1 NotSupported), dEQP-VK.api.copy_and_blit.core.resolve_image.whole_copy_before_resolving.* 6/12 PASS (6 NotSupported) — 116 PASS / 0 FAIL / 0 GPU faults.
  • EGL_PLATFORM=surfaceless eglinfo -B: OpenGL 4.6 Core/Compat (Apple M5 Max (G17C B1), Mesa 26.3.0-devel (git-08aaa3e2e0)), clean.

Updated the PR description Tested: table for 08aaa3e2e0ed.

@aurora-silicon-review aurora-silicon-review Bot 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.

Verdict: MERGE at 08aaa3e2

Blockers: none (ready for multi-family lab regression overlay and merge).

Checked:

  • include/drm-uapi/asahi_drm.h & src/asahi/lib/agx_device.h: 08aaa3e2 cleanly merges aurora-wip (a0164c9101c), preserving both DRM_ASAHI_FEATURE_COMPUTE_ONLY (bit 41) and DRM_ASAHI_FEATURE_TILE_BUFFER_48K (bit 46), keyed strictly on the kernel capability bit (agx_compute_only()).
  • src/asahi/vulkan/hk_physical_device.c & hk_image.c: disables swapchain/present extensions and features, clears pdev->wsi_device.queue_supports_blit = 0 so surface-support queries report VK_FALSE consistently (resolving prior WSI review question), and disables multisampled compression on compute-only devices.
  • src/gallium/drivers/asahi/agx_pipe.c, src/gallium/frontends/dri/dri_screen.c, src/egl/drivers/dri2/egl_dri2.c, platform_surfaceless.c: rejects !pscreen->caps.graphics centrally in dri_init_screen(), avoids leaking display_configs, and cleanly calls driDestroyScreen() (verified NULL-safe in dri_util.c:196) if render screen creation fails.
  • Exact-head J775c verification PASS (meson test + Borealis CTS); MERGEABLE on aurora-wip; no Apple material, tool attribution, or private serials.
Evidence
  • Head: 08aaa3e2e0ed (base: aurora-wip, mergeable: MERGEABLE, +87/-18 across 8 files).

@satchlj

satchlj commented Nov 29, 2026

Copy link
Copy Markdown
Member Author

@DjDeveloperr could you re-review at 08aaa3e2e0ed? Your Nov 22 blockers 1, 2 and 4–6 are resolved: RyanTheTide re-checked them on Nov 27 at 99af00b0, and linux#2610 merged on Nov 24. The later heads only merge aurora-wip. Item 3, the G14G row with bit 41 set (dEQP-VK.api.info.* and dEQP-VK.api.copy_and_blit.*multisample* with --deqp-compute-only=enable, plus surfaceless eglinfo -B), is still open. We'll post it from a J413 on GPU firmware 27.2 once that machine runs a linux#2610 kernel, and the PR stays unmerged until then.

@satchlj

satchlj commented Nov 29, 2026

Copy link
Copy Markdown
Member Author

Claude Opus 5.5 on @satchlj's behalf.

G14G row at 08aaa3e2e0ed with DRM_ASAHI_FEATURE_COMPUTE_ONLY (bit 41) set by the kernel. Machine: Apple M2 Air (J413), G14G B0, GPU firmware 27.2 (stub 26B123).

Kernel: rjianwei/linux@fee2927bb, which contains linux#2610 (d7706b72c), plus T8112 S2R fixes from linux#3371 and linux#3595. Release 7.3.0-s2r1-ARCH #3.

  • On this base g14_v27_2 no longer reports bit 41: cb9cf343b dropped it when G14G render support landed. So for this row it is re-applied exactly as #2610 had it, as a one-line test patch in feature_flags().
  • It's a one-shot trial boot, not the default kernel.

Mesa: packaged at 08aaa3e2e0ed, LD_LIBRARY_PATH/ICD overlay; the system Mesa is untouched. All runs have MESA_SHADER_CACHE_DISABLE=1. CTS: vulkan-cts-1.4.6.2-4-g30cc8a1a, with --deqp-compute-only=enable.

Check Result
Borealis device Apple M2 (G14G B0), queue family 0 VK_QUEUE_COMPUTE_BIT|VK_QUEUE_SPARSE_BINDING_BIT|VK_QUEUE_TRANSFER_BIT, no graphics bit
dEQP-VK.api.info.* 6880 pass / 0 fail / 1300 NotSupported (8180)
dEQP-VK.api.copy_and_blit.*multisample* 0 fail, 12/12 NotSupported. In this CTS the filter matches only the 12 dynamic_state draw-based cases, which skip on a compute-only device: "Not compute-only".
dEQP-VK.api.copy_and_blit.*msaa* 0 fail, 1260/1260 NotSupported: unsupported depth/stencil sample counts, or "Not compute-only"
dEQP-VK.api.copy_and_blit.core.resolve_image.* 0 fail, 240/240 NotSupported: 160 "Unsupported number of rasterization samples", 78 "Not compute-only", 2 no transfer-only queue
eglinfo -B GBM and surfaceless: asahi_dri rejects at screen creation (failed to create dri2 screen), and EGL falls back cleanly to softpipe (git-08aaa3e2e0, GL 3.3, ES 3.1). Wayland and X11 fail eglInitialize, as expected with no display server in a boot-time service.

0 GPU faults and 0 kernel errors from aurora during the runs; G14 firmware 27.2 running; DRM device registered.

The PR's MSAA-copy change could not be exercised here. With bit 41 the device offers no multisample counts, so every MSAA copy and resolve case is NotSupported before it copies anything. That is consistent with a compute-only device, and there are no failures.

@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.

Approved at 08aaa3e2e0ed. I reviewed all eight changed files and the clean current aurora-wip integration b8fe64c49d93. The kernel UAPI dependency landed in aurora-silicon/linux#2610. The capability bit gates graphics queues, present extensions and surface-support queries. The shared DRI screen constructor rejects non-graphics devices, and the EGL teardown releases the temporary display-screen configurations and screen on failure. The relevant commits are d94c07ae334a, 756a1400d6d5 and 99af00b0d59e.

The exact J413 compute-only row passed 6,880 api.info cases and reported 1,300 NotSupported, with software EGL fallback and zero GPU faults. The kernel intentionally restored bit 41 for this one-shot test. Multisample cases reported NotSupported under the device's available sample counts. On the graphics-capable J316s current-base comparison, both drivers retained a graphics queue and VK_KHR_swapchain, matched all 96 sampled Vulkan results, and passed all layered readbacks. Both Gallium arms passed 49/49 GLES cases and initialized Mesa EGL 1.5 through GBM with their own loaded libgallium. Saved boot and GPU health were unchanged. The assertions-enabled integrated host suite passed 353/353.

@RyanTheTide
RyanTheTide dismissed DjDeveloperr’s stale review November 29, 2026 04:27

Resolved at the current head by 756a140 (present and copy guards), 99af00b (shared DRI fallback), and the forward merges. Linux #2610 landed; exact G14G hardware evidence and integrated host/J316s normal-graphics verification are linked in the new review.

@RyanTheTide
RyanTheTide merged commit 06e34ec into aurora-wip Nov 29, 2026
@RyanTheTide
RyanTheTide deleted the satchlj/asahi-compute-only branch November 29, 2026 04:27
@RyanTheTide

Copy link
Copy Markdown

Merged as 06e34ecacbf3b. Thanks for the capability and DRI fixes and for completing the live J413 row. The landed tree matches the integration that passed 353 host tests and the J316s Vulkan, GLES and GBM checks. I filed #1331 as a follow-up for future compute-only configurations that advertise multisample counts. If you’d like to take that follow-up, a PR is welcome.

#1331

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.

3 participants