Commit Graph
288 Commits
Author SHA1 Message Date
Anees Iqbal d6fcaef151 Put the program's render encoder in front of its lowering
Content: the tree of `development` at 12dcaf3df6, unchanged.
2026-10-26 13:19:04 +02:00
Anees Iqbal d218c939a4 Encode again at a rebind an encoder whose only host-page use is its end copy back, and its GPU-alone work
Content: the tree of `development` at 3c7d40aea2, unchanged.
2026-10-26 13:19:04 +02:00
Anees Iqbal 10e254c189 Note and gather only the uses a draw changed from the last draw's
Content: the tree of `development` at 7269e30cc0, unchanged.
2026-10-26 13:19:04 +02:00
Anees Iqbal e41b1b9035 Release pool and mipmap scratch blocks inside an exit-guard section
Content: the tree of `development` at a4f7989a0b, unchanged.
2026-10-26 13:19:04 +02:00
Anees Iqbal dbd4d908e4 List a used resource as written only in the stages whose function writes memory
The steps this packet landed as, in order:
- Take a draw's shape from its encoder's earlier draws of the same inputs

Content: the tree of `development` at e5259206a6, unchanged.
2026-10-26 13:19:04 +02:00
Anees Iqbal 8c96577b40 Record GPU-alone work again at a rebind before the first submission
Content: the tree of `development` at adea9e457c, unchanged.
2026-10-26 13:19:04 +02:00
Anees Iqbal 8237c45cab Refuse a shadowed pass's GPU-written execution only where a reach past its call meets a shadow
The steps this packet landed as, in order:
- Run GPU-written render executions on the GPU alone in passes with shadowed textures

Content: the tree of `development` at 3349566ac4, unchanged.
2026-10-26 13:19:04 +02:00
Anees Iqbal b30642f159 Merge a GPU replay's draws of one list type or points into one draw in the translator
The steps this packet landed as, in order:
- Draw a GPU-written render execution of one list type or points as one merged draw
- Reset an indirect command buffer's records on the GPU with one fill
- Regenerate the refusal surface after the merged draws, rebased onto development
- Regenerate the refusal surface over the host-step cause

Content: the tree of `development` at 99ae896ad5, unchanged.
2026-10-26 13:19:04 +02:00
Anees Iqbal 15400171f0 Name the rule that sent a render execution to the host step in its notice
Content: the tree of `development` at 6c685a586b, unchanged.
2026-10-26 13:19:04 +02:00
Anees Iqbal 31421e12b9 Bind set 0's buffers at dynamic offsets and find a command's set 0 among its command buffer's
Content: the tree of `development` at fa2a26bda6, unchanged.
2026-10-26 13:19:04 +02:00
Anees Iqbal 710a557e16 Draw host_ab's many_draws again with its uniforms over host pages a heap lies over
The steps this packet landed as, in order:
- Add host_ab's layers workload, shaped as m2vbench's composite mode
- Count the variables each stage's entry point uses at a layout binding

Content: the tree of `development` at 75b8996c58, unchanged.
2026-10-26 13:19:04 +02:00
Anees Iqbal 4a286a459a Send GPU-written compute executions to the host step where it runs them faster
The steps this packet landed as, in order:
- Set the runtime version and pin the runtime sources at the merged tree
- Set the semantics version and pin the runtime sources after the render GPU form
- Bless the golden hashes at the merged tree
- Bless the authored compile census at the merged tree
- Regenerate the refusal surface at the merged tree
- Pin the runtime sources after the compute indirect command cost rule
- Regenerate the refusal surface after the compute indirect command cost rule

Content: the tree of `development` at f4a0642491, unchanged.
2026-10-26 13:19:04 +02:00
Anees Iqbal f05f8a5a94 Count a replayed draw's misses of the buffers its slot tables do not hold
The steps this packet landed as, in order:
- Run GPU-written render commands on the GPU alone, and let a check state what it looks for
- Say that a check of every kind runs on the GPU alone where the records rule out both kinds
- Pass what the check looks for in the compute lane's checked execution
- Add host_ab's icb_draws workload: a kernel writes the draws of Apple's GPU-encoded ICB sample

Content: the tree of `development` at 665d587ae2, unchanged.
2026-10-26 13:19:04 +02:00
Anees Iqbal eaaa1741fb Leave a settled two-leaf sum undecorated where no device can combine it with a neighbour
Content: the tree of `development` at d5ea6075d8, unchanged.
2026-10-26 13:19:04 +02:00
Anees Iqbal 83ecf464ec Make a long new host-visible buffer in fresh pages imported by pointer, with nothing written
Content: the tree of `development` at 12606c508c, unchanged.
2026-10-26 13:19:04 +02:00
Anees Iqbal 44f56137e3 Time host_ab's held new buffers and their first CPU write in the memory workload
The steps this packet landed as, in order:
- Time host_ab's first GPU fill of held new buffers, each set held to the end
- Let host_ab run the memory workload's parts alone

Content: the tree of `development` at b41eddf02b, unchanged.
2026-10-26 13:19:04 +02:00
Anees Iqbal 3d9304798d Add host_ab's icb workload: a kernel writes compute commands that a second encoder executes
The steps this packet landed as, in order:
- Run GPU-written compute executions on the GPU alone by indirect dispatches where the device has no generated commands
- Run a concurrent encoder's GPU-alone execution with no barrier between its commands

Content: the tree of `development` at 343b1abcb4, unchanged.
2026-10-26 13:19:04 +02:00
Anees Iqbal b073ccfa4e Read only the slots calls changed when a draw brings a stage table in place
Content: the tree of `development` at 9cbf7c95db, unchanged.
2026-10-26 13:19:04 +02:00
Anees Iqbal f864c34b29 Replay GPU-encoded draws on the device: replay-bound vertex and fragment functions and a draw preprocess
Content: the tree of `development` at bd0d482965, unchanged.
2026-10-26 13:19:04 +02:00
Anees Iqbal cb72ae8d51 Retain an argument table's object once per encoder, whichever slot binds it
Content: the tree of `development` at 9a0e3e697b, unchanged.
2026-10-26 13:19:04 +02:00
Anees Iqbal 7b5fc45e15 Add host_ab's burst workload: calm frames and bursts measured apart
The steps this packet landed as, in order:
- Keep the recycler's proven parked objects through a run of one-off makings
- Remember usage answers by hash, 1024 of them, least recently asked going first
- Pin the runtime sources after the recycler's protected eviction and the usage answers' LRU
- Regenerate the refusal surface at the merged tree

Content: the tree of `development` at bde1abe95b, unchanged.
2026-10-26 13:19:04 +02:00
Anees Iqbal b8dcbe21bc Hold every plain static threadgroup array as a typed object, indexed by its GEP's own operands and clamped by min
The steps this packet landed as, in order:
- Set the runtime version and pin the runtime sources at the merged tree
- Bless the golden output hashes at the merged tree
- Bless the authored compile census at the merged tree

Content: the tree of `development` at 5c643dcf7d, unchanged.
2026-10-26 13:19:03 +02:00
Anees Iqbal a81fe9a689 pipeline_creation: expect two pooled makings on every device, the 16-bit normalized classes keying apart
The steps this packet landed as, in order:
- State the view base alignment in MoltenVK's shapes too, so a run's plan is the executor's

Content: the tree of `development` at 10590d481a, unchanged.
2026-10-26 13:19:03 +02:00
Anees Iqbal 651dcbd8f4 Read which commands a function may write into indirect command buffers
The steps this packet landed as, in order:
- State what an indirect command buffer's records may hold, from every route that writes them

Content: the tree of `development` at 9a885fa69c, unchanged.
2026-10-26 13:19:03 +02:00
Anees Iqbal 01550595a0 Expect a BGRA8 or RGBA8 shadow's merge to fetch on every device in the pitched-surfaces lane
Content: the tree of `development` at 24e981a489, unchanged.
2026-10-26 13:19:03 +02:00
Anees Iqbal 21f996955f Add the hwd_half_reads fixture's golden printout and its engine inventory rows
The steps this packet landed as, in order:
- Pin the runtime sources after a full-cover blit's shadow overwrite

Content: the tree of `development` at 90297e91c2, unchanged.
2026-10-26 13:19:03 +02:00
Anees Iqbal a1c24843d3 Print host_ab's submission counts: completed waits, bare starts, submit infos, finales, pending depth
The steps this packet landed as, in order:
- Composite window surfaces over host pages in host_ab's drag
- Upload window contents into the composited surfaces in host_ab's drag
- Take no copy in and no keep for a blit copy into every texel of a heap shadow

Content: the tree of `development` at c7c1499d07, unchanged.
2026-10-26 13:19:03 +02:00
Anees Iqbal d564d7836f Order a blit encoder's untracked uses by key and range, not as one class
The steps this packet landed as, in order:
- Pin the runtime sources after the blit commands' byte-range order
- Regenerate the refusal surface at the merged tree

Content: the tree of `development` at 1f2b48f345, unchanged.
2026-10-26 13:19:03 +02:00
Anees Iqbal fa19bdd391 Check every half bit pattern through a kernel's moves on every profile
The steps this packet landed as, in order:
- Read a half by the device's widening on MoltenVK where no use reads a NaN's bits
- Set the runtime version at the merged tree
- Bless the golden output hashes at the merged tree
- Bless the authored compile census at the merged tree

Content: the tree of `development` at f9408d00e6, unchanged.
2026-10-26 13:19:03 +02:00
Anees Iqbal bd4499fcd3 Count a typed threadgroup half array's volatile accesses as one each, and keep the arena's covered
Content: the tree of `development` at fc574f50aa, unchanged.
2026-10-26 13:19:03 +02:00
Anees Iqbal 07d517d728 Leave the assumed-unmeasured flag out of a profile's capability members
Content: the tree of `development` at e4d849cdd8, unchanged.
2026-10-26 13:19:03 +02:00
Anees Iqbal 644e055652 Keep a GPU pool's blocks while in use, and release a command buffer's own objects after its handlers
The steps this packet landed as, in order:
- Count the most GPU pool blocks leased at once
- Share one GPU pool block per queue among its command buffers
- Keep an arena's fitted list on the pools a completing command buffer takes out

Content: the tree of `development` at 0a94bc93a0, unchanged.
2026-10-26 13:19:03 +02:00
Anees Iqbal c1e9b6b2b9 Name a line pipeline's record as its triangle sibling's, so its making converts nothing again
The steps this packet landed as, in order:
- Read no data back from a making the driver found in its record, which MoltenVK rewrote each time
- Hash with sha2 0.11, which runs SHA-256 on ARMv8's SHA2 instructions

Content: the tree of `development` at 457e874745, unchanged.
2026-10-26 13:19:03 +02:00
Anees Iqbal 62370dc95a Fetch a BGRA8 or RGBA8 shadow's texels through its own view in cut merges
Content: the tree of `development` at ed95238f3d, unchanged.
2026-10-26 13:19:03 +02:00
Anees Iqbal 7f28814948 Destroy a block's buffer of addresses with no vkQueueSubmit under way, and make no buffer in the memory log
Content: the tree of `development` at ff17d7c868, unchanged.
2026-10-26 13:19:03 +02:00
Anees Iqbal 8e6905f816 Merge four words an invocation in the shadow merge kernel
Content: the tree of `development` at 1ef6536d6c, unchanged.
2026-10-26 13:19:03 +02:00
Anees Iqbal b238e202a4 Report the encoding thread's CPU time per many_draws frame in host_ab
The steps this packet landed as, in order:
- Measure a frame shaped as the guest's window drag in host_ab
- Keep up to 256 spare descriptor pools, a window server's frames' worth

Content: the tree of `development` at c4853d8383, unchanged.
2026-10-26 13:19:03 +02:00
Anees Iqbal 4d9b17a359 Run a batch's first work in its work's VkSubmitInfo, not one of its own
The steps this packet landed as, in order:
- Count render encoders' render pass instances by where they began, and their splits by cause
- Set the runtime version and pin the runtime sources at the merged tree
- Bless the golden output hashes at the merged tree
- Bless the authored compile census at the merged tree
- Regenerate the refusal surface at the merged tree

Content: the tree of `development` at effa414f26, unchanged.
2026-10-26 13:19:03 +02:00
Anees Iqbal 3926ac1204 host_ab: a compositing workload of the consumer's frame shape; count the VkSubmitInfos submitted
Content: the tree of `development` at 89ca6673eb, unchanged.
2026-10-26 13:19:03 +02:00
Anees Iqbal ddd339e2a3 Count released objects by kind and shadow keeps by planner, for the residency churn
The steps this packet landed as, in order:
- Count no-copy imports a live import already holds
- Recycle a texture's image and memory for the next texture of the same making
- Add a control build that turns the image recycler off (--cfg m2v_no_recycle)
- Count image, buffer and memory releases by the place that released them
- Recycle the runtime's buffers and their memory for the next buffer of the same size

Content: the tree of `development` at db877e7a50, unchanged.
2026-10-26 13:19:03 +02:00
Anees Iqbal 7ef86a35d8 Hold a kernel's static half threadgroup arrays as typed Workgroup objects
The steps this packet landed as, in order:
- Pin the runtime sources after the typed threadgroup step's doc edit
- Take the device's sin and cos as Metal's fast ones in a fast-math module on MoltenVK
- Write the typed threadgroup region test's module as a plain string
- Convert a plain class's half texel by the device's conversion on MoltenVK
- host_ab: compare each gpu kernel's output between the sides
- Share an imageblock slice write out to the whole threadgroup where one invocation writes it
- Copy a half slice's cell bits straight to a half-bits slot

Content: the tree of `development` at b0e2bd6190, unchanged.
2026-10-26 13:19:03 +02:00
Anees Iqbal d01ed34d37 Add DeviceOptions::assume_unmeasured_identity: run a measured device as an unmeasured GPU
The steps this packet landed as, in order:
- Pin the runtime sources at the switch on the development base
- Blend fast-math colors into BGR10_XR_sRGB and RGB10A8_2P_XR10_sRGB as the linear forms do
- Name a placement heap texture the heap does not make at an offset inside it

Content: the tree of `development` at 3386fdcac8, unchanged.
2026-10-26 13:19:03 +02:00
Anees Iqbal f9ebf83b15 Measure a frame of many small draws in host_ab, shaped as m2vbench's draws mode
Content: the tree of `development` at afac0fda19, unchanged.
2026-10-26 13:19:03 +02:00
Anees Iqbal 782f13aa8d pipeline_records: a compute state's dispatch leaves a record per making, its creation's too
Content: the tree of `development` at 0f64c799aa, unchanged.
2026-10-26 13:19:03 +02:00
Anees Iqbal b253a0ad98 Convert a two-plane YCbCr texture only where its planes changed since the last conversion
Content: the tree of `development` at b3c5e804ad, unchanged.
2026-10-26 13:19:03 +02:00
Anees Iqbal 4d90c98090 Keep the runtime's own kernels' spare descriptor pools apart from command buffers'
Content: the tree of `development` at e1d60ab9d4, unchanged.
2026-10-26 13:19:03 +02:00
Anees Iqbal 0a7b64f41d Bind the last set 0 again, and settle a dispatch once, where nothing it reads changed
The steps this packet landed as, in order:
- Ask a heap texture's image requirements once, and take owned kernels' sets from spare pools
- Find a replayed draw's pipeline where its state's last draws found it

Content: the tree of `development` at 6f29d4516f, unchanged.
2026-10-26 13:19:03 +02:00
Anees Iqbal fab21259b7 Make a compute state's first dispatch pipeline at its creation, and one form per key on MoltenVK
Content: the tree of `development` at 52fe66739d, unchanged.
2026-10-26 13:19:02 +02:00
Anees Iqbal c356f8d13d Check a host step's commands from the records it read, without reading them again
Content: the tree of `development` at 412587dab0, unchanged.
2026-10-26 13:19:02 +02:00
Anees Iqbal f6442761df Let an indirect command buffer's execution check the commands its host step records
Content: the tree of `development` at 480957f307, unchanged.
2026-10-26 13:19:02 +02:00