Garvit Surana
740703f15f
feat(app): the macOS app shows itself as Stambha, with the pillar icon, in its name, window, menus, dialogs and report, and keeps its bundle identifier and executable, so an installed copy updates in place, where it still showed Stela and Stela's icon
2026-11-30 13:06:03 +00:00
Garvit Surana
3168b12bba
fix(gpu): make newBufferWithBytesNoCopy: of an address within a page over the pages around it, starting the buffer that far in (wire minor 1, NewImportedBufferAt), where its nil crashed mediaanalysisd every few minutes on dev64 and each crash ran ReportCrash
...
Espresso, which mediaanalysisd runs its models with when there is no
Neural Engine, makes 16-byte no-copy buffers 8 bytes into a page
(0x781827ff58 at 725.9 s of dev64's test 4 boot). The frontend wired
[bytes, bytes + 16 KiB), the gate refused ranges that are not whole
pages, Metal answered nil and mediaanalysisd crashed 0.5 s later. It
crashed five times in 30 minutes, ReportCrashService restarting eleven
times to report them.
The frontend now imports the whole pages around the bytes and asks for a
buffer offset bytes into them. The VkBuffer starts at the driver's buffer
alignment below the bytes and the Metal buffer where they are: commands
take the start as the buffer's offset in its VkBuffer, as they do for
upload suballocations, and its address is the bytes'. Textures over such
a buffer are refused, as their rows are addressed from the VkBuffer's
start. A page-aligned address imports as before.
2026-11-27 11:51:04 +00:00
Garvit Surana
91f17ce6d3
merge fork/061-nvidia-render into release/0.6.1
2026-11-24 16:19:07 +00:00
Garvit Surana
f3229446a9
fix(gpu): a command buffer marks each IOSurface it names in use until it completes, as Apple's GPU driver does, where a video decoder's pool reused a frame whose sampling command buffer the service had yet to run and the lock screen's aerial wallpaper showed green, stair-stepped blocks of rows not yet decoded
...
With no hardware video decoder, VideoToolbox decodes on the CPU into a
CVPixelBufferPool, which reuses only a surface that is not in use
(IOSurfaceIsInUse). The guest driver never marked a surface in use, so
the pool handed a frame back to the decoder as soon as WindowServer
committed the command buffer that sampled it; the service then copied the
4K 10-bit frame into device memory while the decoder rewrote it: zero
luma and chroma below the decoder's wavefront, green in YCbCr, for a frame
(rnz, RTX 5070 Laptop; reproducible on the ASUS TUF A16).
The commit now increments the use count of every IOSurface the command
buffer names, once a surface, and its completion or refusal decrements
them before anyone learns it completed.
Each distinct two-plane IOSurface texture is named once in the log
(GPU TWO-PLANE TEXTURE): format, size, usage, the surface's pixel format,
each plane's offset, row, extent and format, and whether the GPU samples a
device copy or the rows in place. Tests cover the note and the device copy
of a 3840x2160 10-bit 4:2:0 frame's two planes.
2026-11-24 16:17:54 +00:00
Garvit Surana
a71850aa20
fix(app): show "Stambha <version>" in Stela.app's About This PC, its summary and its Updates list, where they said "Stela 0.6.0"
...
The version macOS users saw as "Stela 0.6.0" is the app's About This PC
caption, "Stela \(stelaVersion)", over the StelaVersion key stela.efi
publishes. The caption, the copied summary line, the Updates row and the
no-description card now say Stambha; the bundle identifier, the StelaHost
keys and the on-disk paths are unchanged. The app is prebuilt on a Mac
(guest/stela-app/build.sh), so this reaches users with its next build.
2026-11-24 12:16:21 +00:00
Tyler Smith
140ffaf716
fix(gpu): the StelaGPU kext sets the length of a file it rewrites, since vnode_open leaves O_TRUNC to the open syscall and a shorter plugin kept the old one's tail, and a failed install stops naming its step and errno
2026-11-20 07:27:37 -05:00
Tyler Smith
64cdf47cf7
fix(gpu): a command buffer notes reported seeds in a flat list, where a strong array's cleanup gave the bundle a landing pad and an __eh_frame relocation its link refuses
2026-11-19 17:37:03 -05:00
Tyler Smith
600d768cc1
fix(gpu): a surface's device-memory copies are current at every command buffer's start, where a texture sampled only through an argument buffer read what its last reported use copied: the guest reports the changed seed of every live copied texture, a command buffer that writes a surface refreshes its other copies at its end, and the service's CPU writes refresh at the next
2026-11-19 17:37:03 -05:00
Tyler Smith
ed84ef5f0a
fix(gpu): the kext says no gate connection opened because all are in use or the host's GPU service refused it, where it said every gate connection is open when the host refused a lost GPU's clients
2026-11-17 08:52:53 -05:00
Daniel Brooks
fbc0e250db
fix(gpu): answer iosurfaceTextureAlignmentBytes and iosurfaceReadOnlyTextureAlignmentBytes with the linear row alignment at most NVIDIA's 32 bytes, as rows the linear images cannot take go through an aligned copy, where RADV's 256-byte linear rows made Core Image refuse textures of the icon services' surfaces and MPSImageGaussianBlur abort iconservicesagent on a nil texture, leaving icons blank
2026-11-17 01:22:57 -05:00
Daniel Brooks
a14853e540
fix(app): name an AMD GPU as AMD's in the host inventory, where every chip without a known NVIDIA product ID read as NVIDIA's, an RX 6800 XT as "NVIDIA navi21"
2026-11-17 01:22:57 -05:00
Tyler Smith
fda4ece2a2
perf(gpu): a large sampled two-plane IOSurface texture is kept in device memory and copied from its rows only in command buffers that use it after its surface's seed changed or the GPU wrote it, where every sample was a bus read of guest RAM and a 4K video wallpaper cost Mission Control 10-19 ms a frame
2026-11-16 16:56:32 -05:00
Tyler Smith
f7d2ffc6da
fix(gpu): a command buffer without retained references notes its serial before it drops its objects, so a pooled buffer released with them keeps its place until that command buffer completes, where its place could be reused under it
2026-11-15 20:58:39 -05:00
Tyler Smith
c956270219
fix(gpu): report a failed device buffer or heap allocation and a command stream abort to the system and host logs, where WindowServer got nil or stopped with no line naming the cause
2026-11-14 18:05:20 -05:00
Tyler Smith
d5fc4d52ed
fix(gpu): tell CoreVideo the guest has no universal buffer compression with a one-shot job that sets disable-buffer-compression in the global preferences, where a CPU painter's lossless page tiles drew as stripes
2026-11-14 15:55:26 -05:00
Tyler Smith
accf7a0ff6
docs(kext): name the private vnode calls a kext cannot bind, as the guest kernel's symbol table shows
2026-11-14 01:34:00 -05:00
Tyler Smith
55eed344a9
feat(gpu): log each process's accelerator open result and the plugin's pre-gate failure step to the guest console once
2026-11-14 01:33:59 -05:00
Tyler Smith
7245fed023
fix(gpu): answer a refused function the library holds with Metal's unsupported or compile-failure error, not function-not-found
2026-11-14 01:33:57 -05:00
Tyler Smith
e03afcffa1
perf(gpu): arm a Metal device's completion notification only while it waits for one, so a completion no longer wakes every Metal process to poll
2026-11-11 20:55:32 -05:00
Tyler Smith
be7a8d5c7b
feat(gpu): make Metal buffers over an IOSurface's pages through the shared imported-buffer path
2026-11-11 14:26:39 -05:00
Tyler Smith
6bf56589d6
fix: mark the app build script executable, run it through bash in the release workflow, and clear the executable bit on Rust sources
2026-11-11 05:15:37 +00:00
Tyler Smith
4a6f564426
test(macos): use a generic sample PC for the host inventory
2026-11-11 04:55:07 +00:00
Tyler Smith
21b872a6b5
refactor: move the macOS app from apps/stela-macos to guest/stela-app, beside the other guest software
2026-11-11 04:49:19 +00:00
Tyler Smith
6a864c8a43
docs(guest): drop the README pointer from the refused-feature comment
2026-11-11 04:40:06 +00:00
Tyler Smith
416f27495c
docs(guest): drop citations of local design notes from the Metal plugin
2026-11-11 04:38:18 +00:00
Tyler Smith
2c2850b390
feat(boot): carry the loader's host facts over the handoff, trim SMBIOS strings, add board model and firmware version, and name the translator's compile target in StelaHost
2026-11-11 03:58:59 +00:00
Tyler Smith
6b7da97c5e
feat(app): publish the boot's host inventory as StelaHost and show it in the redesigned Stela app's This PC view
2026-11-11 02:53:06 +00:00
Tyler Smith
8e05d7bb34
feat(guest): deliver Stela.app into the guest from the StelaGPU kext and package it with cargo xtask guest
2026-11-11 02:53:06 +00:00
Tyler Smith
1c3e300277
perf(gpu): fail only the command buffer whose submission the driver refuses, look from the waiter's timeline reading, cache imports, and skip event queries once values are reached
2026-11-11 02:53:00 +00:00
Tyler Smith
83edffa313
feat(gpu): store two-plane 10-bit formats as codes with a reused working image, fit heaps as a Mac does, and keep released memory until held command buffers finish
2026-11-10 21:15:19 +00:00
Tyler Smith
fe2fd8016b
fix(gpu): keep a gate fault for the call that met it, fail a deferred call whose record takes no Pending with its fault, fail a caller write that RAM refuses, and make an unread call again
2026-11-10 17:44:07 +00:00
Tyler Smith
c3b8a267f0
fix(gpu): hold command buffers at unpromised event waits per Metal queue and per segment, so buffers that signal each other mid-buffer across queues complete
2026-11-10 16:14:31 +00:00
Tyler Smith
b161a993fb
fix(gpu): link a function made from a descriptor under its specialized name, the name pipelines call it by
2026-11-10 14:18:57 +00:00
Tyler Smith
904e87aff1
perf(gpu): run shader reflection and compiles as jobs outside the service lock on processors whose guest waits, answer the call not ready until its job is done, and serialize every LLVM entry under the compile lock
2026-11-10 13:33:40 +00:00
Tyler Smith
e454893612
fix(gpu): run a compute dispatch whose kernel uses a threadgroup slot the encoder never sized with the argument's declared bytes, name the process and functions of a refused commit, and answer zero GPU times for a buffer that did not run
2026-11-10 12:17:12 +00:00
Tyler Smith
9dc6be696a
feat(gpu): call Metal's synchronization notifications, answer isDrawable, publish refused command buffers' signals, and zero new resources in the guest bundle
2026-11-10 09:56:41 +00:00
Tyler Smith
3236913b81
feat(gpu): translate stitched graphs, constructors, shared calls, matrix shuffles, two-plane and bicubic sampling, and derivatives in branches without speculating unsafe loads
2026-11-10 09:55:56 +00:00
Tyler Smith
86e060456e
feat(gpu): name the caller outside Foundation and the runtime that sent each forwarded selector
2026-11-08 01:24:25 +00:00
Tyler Smith
0c9c28b569
feat(gpu): name the image and offset that sent each SPI selector the guest has no answer to
2026-11-08 00:38:58 +00:00
Tyler Smith
13b77ee157
feat(gpu): answer functions' bitCodeHash with their AIR module's SHA-256
2026-11-07 23:56:38 +00:00
Tyler Smith
4c0a143ad9
fix(gpu): answer sparse tile sizes by MTLSparsePageSize's enum values, which are not sizes in KiB
2026-11-07 22:54:20 +00:00
Tyler Smith
00d8c5fd65
test(gpu): cover sparse textures and stencil resolve, and offer sparse textures only with strict non-resident reads
2026-11-07 21:55:41 +00:00
Tyler Smith
58e6b7dbe0
feat(gpu): add texture view pools, whose entries' IDs shaders resolve to their views
2026-11-07 21:55:41 +00:00
Tyler Smith
8c334bb5e9
feat(gpu): accept color attachment maps, which descriptor-built pipelines ignore as on Apple GPUs
2026-11-07 21:19:05 +00:00
Tyler Smith
0cbb6f771b
feat(gpu): answer command queues' GPU priorities
2026-11-07 20:53:02 +00:00
Tyler Smith
b407fb4011
feat(gpu): render rasterization rate maps at full quality
2026-11-07 20:53:02 +00:00
Tyler Smith
cdd538ee98
feat(gpu): give render passes imageblock data for fragment and tile functions
2026-11-07 19:56:48 +00:00
Tyler Smith
5e6b1968ae
feat(gpu): archive tile pipelines and give them function tables and binary functions
2026-11-07 19:52:01 +00:00
Tyler Smith
17f1848e76
feat(gpu): dispatch tile functions over render passes' attachments
2026-11-07 19:24:48 +00:00
Tyler Smith
98fc409941
feat(gpu): lower kernels' explicit imageblocks to threadgroup memory
2026-11-07 18:40:12 +00:00