Commit Graph
1046 Commits
Author SHA1 Message Date
Anees Iqbal 58338b04cd Announce a device heap's multisample colour texture untiled only where its samples differ
The steps this packet landed as, in order:
- Answer a size query at a level as Metal does, past the level count too

Content: the tree of `development` at d5c9aaabd0, unchanged.
2026-10-26 13:19:06 +02:00
Anees Iqbal 1d494932f7 Clear the object-grid lane's targets to zero before reading them as drawn nothing
The steps this packet landed as, in order:
- Run any object grid Metal runs, in pieces within the task stage's limits
- Upload a folded object draw's fold when it launches nothing too
- Run an unfolded object stage's direct grid as Metal does when its threads wrap
- Bump the semantics, artifact format and runtime versions for the seventh stack
- Pin the runtime sources of the seventh stack
- Bless the golden hash tables over the seventh stack

Content: the tree of `development` at a6f6b269ad, unchanged.
2026-10-26 13:19:06 +02:00
Anees Iqbal e69068885b Write a kernel's draw of a primitive type past Metal's five as points, as Metal's encoding does
The steps this packet landed as, in order:
- Give the private-writes fixture its golden printout and inventory rows
- Draw an indirect render command's private primitive types as the encoder's draws of them
- Count an injected page fault or hang toward a queue's revocation, as the error it stands for
- Drop a unit's ungated dispatches at its unbalanced first record, as Metal does

Content: the tree of `development` at 8e08f4d248, unchanged.
2026-10-26 13:19:06 +02:00
Anees Iqbal 7aafd4d5b3 Split a predicated loop's laying around the work recorded apart
The steps this packet landed as, in order:
- Start a predicated loop's check thread through the exit guard
- Make a predicated loop check's command pool inside an exit-guard section
- Run an endless predicated loop on after its queue is let go, as Metal does

Content: the tree of `development` at f6e7e87687, unchanged.
2026-10-26 13:19:06 +02:00
Anees Iqbal 3718e6088a Say unmeasured-heap-texture-size names PVRTC only at macOS 26.7's level
The steps this packet landed as, in order:
- Give a device heap's compressed multisample texture its own lossless reason
- Plan a heap multisample texture's sample moves per copy, from a queue's pool

Content: the tree of `development` at 936672b44c, unchanged.
2026-10-26 13:19:06 +02:00
Anees Iqbal ac54e28297 Blend a fetched attachment with the second source, as Metal allows
The steps this packet landed as, in order:
- Regenerate docs/REFUSALS.md after the second-source blend of a fetched attachment
- Bind the generic blend lane's buffers at a u32 index

Content: the tree of `development` at d556610e9d, unchanged.
2026-10-26 13:19:06 +02:00
Anees Iqbal 97d01927cb Fail a faulted command buffer from its encoder on, at Metal's fault timing
The steps this packet landed as, in order:
- Run an executed command's mesh draw with the object threadgroup lengths it set
- Expect the untiled heap layout notice in the ID lanes where images lie in the driver's layout

Content: the tree of `development` at df4df1719c, unchanged.
2026-10-26 13:19:06 +02:00
Anees Iqbal 245f432e2e Keep a two-plane 3D texture over its first slice in a heap, with Metal's blits and CPU copies
The steps this packet landed as, in order:
- Bump the semantics, artifact format and runtime versions for the third stack
- Pin the runtime sources of the third stack
- Bless the golden hash tables over the third stack

Content: the tree of `development` at 2fde63f27f, unchanged.
2026-10-26 13:19:06 +02:00
Anees Iqbal 54e399ca25 Draw indirect mesh grids as Metal does, through an arguments pass on mesh-shader devices
The steps this packet landed as, in order:
- Regenerate the refusal surface after the indirect mesh draws
- Read the task limits through the profile's public limits in the mesh draws lane
- Name VK_EXT_post_depth_coverage in the candidate's enable list
- Re-bless the opened chains, and let a late depth test behind an imageblock writer link
- Withhold the mesh shader extension's features with it in the mesh lane

Content: the tree of `development` at 3e1d7fbbe1, unchanged.
2026-10-26 13:19:06 +02:00
Anees Iqbal aaaaf501f4 Draw an emulated mesh's primitives from their last index at mode 1
The steps this packet landed as, in order:
- List the provoking notices among the kinds a lane test takes
- Take only the provoking kinds in the no-primitive lane test
- Fit the second stack's draw forms together, and regenerate docs/REFUSALS.md
- Pin the runtime sources of the second stack
- Bless the golden hash tables over the second stack

Content: the tree of `development` at b1ea97c5cf, unchanged.
2026-10-26 13:19:06 +02:00
Anees Iqbal 007879f9f9 Blend a fetched attachment of any float-class format in the shader, logged
Content: the tree of `development` at a9eec8fa77, unchanged.
2026-10-26 13:19:06 +02:00
Anees Iqbal 027451fc5f Revoke a queue at its second caused GPU error, as Metal does
The steps this packet landed as, in order:
- Draw private types in a pulled list form where the indexed list differs from Metal

Content: the tree of `development` at d3fc3a5794, unchanged.
2026-10-26 13:19:06 +02:00
Anees Iqbal b26640bac9 Reach every live sampler state by its ID through device-wide sampler tables
The steps this packet landed as, in order:
- Let a host step make the images, render passes, framebuffers and neutrals it needs
- Order a command after a barrier the CPU set once its encoder ended

Content: the tree of `development` at 6584b0e93d, unchanged.
2026-10-26 13:19:06 +02:00
Anees Iqbal d0b13398e8 Store Metal's nearest-even coverage alpha under textureWriteRoundingMode 2
The steps this packet landed as, in order:
- Add the pdc_compare_clamp fixture's golden printout

Content: the tree of `development` at 040e85783d, unchanged.
2026-10-26 13:19:06 +02:00
Anees Iqbal 7f50ad492e Run a predicated loop's copies again until the loop ends
Content: the tree of `development` at 61cb931693, unchanged.
2026-10-26 13:19:05 +02:00
Anees Iqbal e323ba2f72 Run tile threadgroups of every even shape in Metal's thread layout
The steps this packet landed as, in order:
- Read the coverage after the early depth test for [[sample_mask, post_depth_coverage]]
- Copy a stencil view's texels by the CPU as plain Metal does
- Give multisampled fragment imageblocks a block per sample, and test before writes a test may drop

Content: the tree of `development` at becd3e74a9, unchanged.
2026-10-26 13:19:05 +02:00
Anees Iqbal a653c11b49 Match Metal's detach timing: per submission, until the handlers ran
Content: the tree of `development` at 281583adb4, unchanged.
2026-10-26 13:19:05 +02:00
Anees Iqbal 1400c9049f Resolve a NaN clear as Metal does in a pass whose draw calls draw nothing
The steps this packet landed as, in order:
- Leave a resolve texture untouched where Metal's tile is not stored into its format
- Take setDepthCleared, setStencilCleared and setVertexAmplificationMode as Metal does
- Run the private alpha test in the fragment function as Metal tests it
- Clamp depth comparison references as Metal's fragmentDepthCompareClampMask says
- Take vertexAmplificationMode and explicitVisibilityGroupID as Metal does
- Record no restricted depth range where the driver keeps depth values outside [0, 1]
- Draw Metal's private logic operation: copy and no-op everywhere, the rest through logicOp
- Leave the default alpha test and clamp mask out of the inputs encoding test's derived Debug
- Clamp the reference of a depth comparison the shader makes under the clamp mask
- Key each Vulkan logic operation's pipeline apart
- Refuse a multisampled extended-range resolve naming its format and Metal's rule

Content: the tree of `development` at 0231dbbd54, unchanged.
2026-10-26 13:19:05 +02:00
Anees Iqbal 123a9919fc List argument samplers at each batch's submission, and retire resource-id-takeover
The steps this packet landed as, in order:
- Refuse the private option bit where Metal ends the process, and take it where Metal ignores it
- Drop the GPU's writes to no-copy memory of the private option bit on macOS
- Let a host step ask the driver for a heap set's layout support
- Run a command that leaves a live sampler state out, announced, instead of failing it
- Record what a read-only view of no-copy pages costs

Content: the tree of `development` at abc094a6c3, unchanged.
2026-10-26 13:19:05 +02:00
Anees Iqbal c660aa807a Lay a heap's multisample depth and stencil textures out in Metal's sample tiles
Content: the tree of `development` at 158b0be755, unchanged.
2026-10-26 13:19:05 +02:00
Anees Iqbal 766ba91b30 Keep a heap's two-plane array and mipmapped texture in the heap's bytes
The steps this packet landed as, in order:
- Give the 3D two-plane heap texture test a Private descriptor
- Lay a heap's depth and stencil textures out in Metal's tiles on MoltenVK
- Answer Metal's heap size for PVRTC textures and tile them under 27.0.1
- Lay a heap's Depth32Float_Stencil8 texture out in Metal's two tiled planes
- Make a host heap's uncompressed multisample texture in memory of its own
- List the two-plane array fixture in the engine inventory, with its printout
- Let the no-copy heap lane find a compressed texture's texels in Metal's tiles
- Name the depth heap lane's aspect list type for clippy
- Announce a device heap's textures whose bytes are not Metal's layout
- Lay a heap's X32_Stencil8 texture out in a Stencil8 texture's tiles

Content: the tree of `development` at b3c694ad82, unchanged.
2026-10-26 13:19:05 +02:00
Anees Iqbal ee21fca2f4 Write Metal's bytes in texture fills and two-plane buffer blits
The steps this packet landed as, in order:
- Hold RGB10A2Unorm_sRGB textures with Metal's conversions
- Name the runtime's gap, not a missing feature, for fetch on interlock devices
- Take clippy's forms in the RGB10A2Unorm_sRGB tests
- Fill multisample textures' samples as Metal's private fills write them
- Check fill units only for the formats the crate holds textures of
- Hold a two-plane texture's bytes between rows, which Metal's buffer blits read back
- Fill texture buffers as Metal does: bytes of the buffer, the pattern streamed
- Drop the multisample fill from apple_only's refusals, which fills it
- Meet the rows of a two-plane buffer blit into the texture in Metal's order
- Announce narrow two-plane row meetings across groups of 32 rows as one of Metal's

Content: the tree of `development` at 9d3447dec9, unchanged.
2026-10-26 13:19:05 +02:00
Anees Iqbal 9516e41497 Say what an indirect command holds of the pipeline state set on it
The steps this packet landed as, in order:
- Time indirect commands' CPU setters and getters in host_ab
- Read and write one field of an indirect command's record
- Set and read an indirect command's fields one at a time
- Call an indirect execution's check where it may see something, and run the CPU's later writes
- Load vkGetDescriptorSetLayoutSupport inside the exit guard's sections
- Hand out indirect command buffer IDs to 2^31 - 1 and place every one's records, as an M3 Max does
- Refuse an indirect command buffer reservation Metal hangs at as such
- Place an indirect command buffer's records at any length, found only at their start
- Leave a resource ID pool made after a reservation of 0 alone, as Metal does
- Ignore a late reservation call before looking at what it holds, as Metal does
- Expect the merged-draw tests' pipeline makings' notices on every device
- Keep an indirect compute command's threadgroup lengths where Metal keeps them
- Take the pieces of the ICB identifier range Metal's encoders take
- Answer a GPU-written command's state identifier as the state its ID named then
- Run a GPU-written record's released state as Metal does, from the buffer's kept programs
- State and test the bound on the programs a GPU-writable buffer keeps
- Record the earlier-window record of a re-held ID as a known gap

Content: the tree of `development` at 7d31ebb207, unchanged.
2026-10-26 13:19:05 +02:00
Anees Iqbal c83dcdd384 Give the predication step ops that drop, hold and resume a range, and check a unit's end
The steps this packet landed as, in order:
- Answer command predication as Metal does on an M3 Max under macOS 27.0.1
- Probe Metal's command predication from the validation crate's Metal platform
- Wait for the predication probe's command buffers through the bounded wait
- Name the record a predication block left open came from in its command buffer's failure
- Refuse a run's first indirect dispatch of another dispatch type at Metal level 26.7
- Read an encodeEndDoWhile's word only where it closes a live DoWhile
- Run command predication on devices without buffer device addresses
- Nest predicated loops to any depth, their copies bounded by what they lay down
- Read a predication word past its buffer as Metal reads it
- Halt a predication unit where a loop runs past its copies
- Name the lane's fixed loop case type, which clippy found too complex

Content: the tree of `development` at ef8b74ec1b, unchanged.
2026-10-26 13:19:05 +02:00
Anees Iqbal 0d9e71903b Read VK_EXT_provoking_vertex: provokingVertexLast and provokingVertexModePerPipeline
The steps this packet landed as, in order:
- Write the index rewrite pass's primitives in either provoking vertex order
- Draw Apple's last provoking vertex: a last-vertex pipeline, else lists led by it
- Test Apple's provoking vertex modes against Metal's on the device
- Describe the provoking third way as pipeline-dependent; fix the table test
- Check the last provoking vertex through a geometry stage; key its slice notice on stages
- Test that executions keep the first vertex; scale the weights check by the values
- Register rt6_provoking in the engine inventory and golden printouts
- Add host_ab's provoking workload: flat-shaded draws at provoking vertex modes 0 and 1
- Add the index gather pass: one dispatch for a run of direct draws' lists
- Gather direct indexed draws' lists in runs: one dispatch per run, not three per draw
- Add the rotated-weights variant: Metal's barycentric weights from a rotated triangle
- Count private lists' gathers under a last-vertex pipeline; take the open runs whole
- Draw listed triangles' barycentric weights through the rotated-weights variant
- Draw every provoking vertex mode past 1 the third way, its top bit set or not
- Announce nothing for a provoking-mode draw that makes no primitive

Content: the tree of `development` at 91b1df7b21, unchanged.
2026-10-26 13:19:05 +02:00
Anees Iqbal 9adc8a867a Draw Metal's private primitive types 5 to 8 as the lists Metal draws
The steps this packet landed as, in order:
- Test the private primitive types' draws against Metal's lists on the device
- Check the private draws through the weights' geometry stage too
- Use is_multiple_of and as_chunks in the private lists
- Fail a draw of primitive type 9 as Metal's GPU does
- Give the private-types fixture its golden printout and inventory rows
- Discard what a hang's queue schedules during it, and time the hang as measured
- Regenerate REFUSALS for the type-9 runtime changes
- Read Metal's quad primitive ID under private quads and quad strips
- Read a type-9 hang's Scheduled at Metal's time, not at its held last batch
- Schedule a hang's queue's command buffers from the hang's Scheduled on
- Stop a hang's thread waiting on a failed command buffer; keep storage-form commits on their last batch
- Hold a hang's joined command buffers behind a closure, so Rustdoc ends

Content: the tree of `development` at 5441a97bda, unchanged.
2026-10-26 13:19:05 +02:00
Anees Iqbal 787d92fdc2 Answer a heap texture's allocatedSize from the place that holds it
The steps this packet landed as, in order:
- Answer a kept heap texture requirement before asking the device's limits
- Answer whether a command buffer or submission uses given objects, cloning nothing
- List devices' registry IDs without making devices, and open one by its ID
- Give a made pipeline state's reflection from its compile, after its creation
- Enable optional device extensions where each device can, and say which it enabled
- Let a caller vouch for its host pages' write permission, skipping the kernel's answer
- Import read-only host pages from the caller's dma-buf source, and say whether a device takes shared pointers
- Hold a texture of Apple's private usage 0x8 alone to what Metal does with it
- Measure RADV 26.2.4 on the RX 7900 XTX: its pointer imports follow their address
- Free a no-copy buffer's dma-buf imports before its keep-alive goes
- Measure a file's pages mapped under a live RADV pointer import, a known gap
- Let what waits for a dma-buf import's free go as its fields drop

Content: the tree of `development` at 0a38130573, unchanged.
2026-10-26 13:19:05 +02:00
Anees Iqbal 7b8ebc5b3e Use AtomicU64::try_update, the name fetch_update now has
The steps this packet landed as, in order:
- Refuse buffer-texture copy layouts whose rows pass u64::MAX instead of wrapping
- Wait without a deadline for a timeout past the host's clock, and test copies at the buffer's edge
- Place a multisampled buffer copy's rows where plain Metal does, staging off-texel rows
- Say that Metal copies the multisampled layouts the runtime still refuses
- Count the rows a compressed-texture blit rewrites, and test a copy out off the texel

Content: the tree of `development` at e5ff75b136, unchanged.
2026-10-26 13:19:05 +02:00
Anees Iqbal 1d15b13eb7 Complete a queued commit its own work refused
The steps this packet landed as, in order:
- Pin the runtime sources with a refused queued commit's completion

Content: the tree of `development` at a62e8a365f, unchanged.
2026-10-26 13:19:05 +02:00
Anees Iqbal 6da0b55c4b Leave a commit's own work behind a render encoder's end in flight, on request
The steps this packet landed as, in order:
- Regenerate the refusal surface and pin the runtime sources with commits behind the lowering thread

Content: the tree of `development` at 770f8bce10, unchanged.
2026-10-26 13:19:05 +02:00
Anees Iqbal e3ade73ace Run a fragment's quads whole through MoltenVK 1.4.2 without shaderQuadControl
The steps this packet landed as, in order:
- Withhold MoltenVK 1.4.2's blend warning of attachments it cannot blend
- Measure the M3 Max at MoltenVK 1.4.2, named apart from the M4
- Say what queue_storms measured at MoltenVK 1.4.2 plainly
- Make a heap's set layout MoltenVK's support query refuses only where it runs it, announced

Content: the tree of `development` at 285be2f493, unchanged.
2026-10-26 13:19:04 +02:00
Anees Iqbal 1505f4f5b3 Lower a render encoder's end on the device's lowering thread, on request
The steps this packet landed as, in order:
- Regenerate the refusal surface and pin the runtime sources with the end on the lowering thread

Content: the tree of `development` at bf576119ea, unchanged.
2026-10-26 13:19:04 +02:00
Anees Iqbal 59f83d5bd4 Lower a render encoder's logged calls on the device's lowering thread, on request
The steps this packet landed as, in order:
- Regenerate the refusal surface and pin the runtime sources with the lowering thread

Content: the tree of `development` at e282080dd5, unchanged.
2026-10-26 13:19:04 +02:00
Anees Iqbal 19ccb91916 Log a render encoder's calls and lower them after they return, on request
The steps this packet landed as, in order:
- Regenerate the refusal surface and pin the runtime sources with the logged render encoder

Content: the tree of `development` at f3cfaa3feb, unchanged.
2026-10-26 13:19:04 +02:00
Anees Iqbal b94953dfa9 Resolve GPU-alone work's resident set at the first submission, not by recording it again
Content: the tree of `development` at 3f5472f696, 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 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 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 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 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 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 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 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 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 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