Files
reims-vgpu/docs
Anees Iqbal c92ae9cdaa ⬆️ Build on metal2vulkan development b531238180
Pin U, from dfbc157464 (T): 56 commits, no merges: c6a7995260 and its
bless commit, which touches only the translator's tables.

What changes for the guest:
- A kernel's [[stage_in]] attribute read through an indexed step
  (MTLStepFunctionThreadPositionInGridXIndexed or ...YIndexed) at a step
  rate past 1 is now fetched: element origin + index[min(position / rate,
  size - 1)], as an M3 Max reads it (metal2vulkan's stage-in-region-clamps,
  rows at rates 2 and 3). Before, the compute pipeline state was nil with
  an NSError (rt's Gap::StageIn, IndexedStepRate).
- A texture of the private usage bit BlockWritesOnly (0x10000) takes a
  kernel's write as one of ShaderWrite does, and takes an index: the
  guest's where it places one, else one of the platform's own. Before, a
  texture of the bit alone had no index (resourceIndex and gpuResourceID
  0), and a write through it was refused at the dispatch
  (TextureUsageAtSlot).
- A thread-local global of the thread address space compiles, each
  thread's own from its initializer; before, rt refused the module
  (ModuleRecord code 7).
- A device-coherent texture's reads and writes (MSL 3.2
  memory_coherence_device) compile, coherent at device scope; before,
  UnknownIntrinsic. A coherent access beside a storage image compiles too;
  before, NotImplemented Lowering(MemoryModel).
- A kernel's or vertex function's calculate_clamped_lod through a runtime
  sampler compiles under the identity domains, reading the sampler word's
  minimum level; before, refused.
- A padded form's (R10Unorm_X6, RG10Unorm_X12, their _sRGB twins) linear
  mip filter blends two levels, and a bfloat form's reads the nearest
  level. The device makes no texture of these formats, so no guest
  reaches it.

What changes on our side:
- reaches() counts BlockWritesOnly with ShaderRead and ShaderWrite, as rt's
  reached does, so new_texture asks rt for an index for a texture of the
  bit alone; without it, rt refuses the make (Refusal::TextureIndex).
  shaders_reach_read_write_unknown_and_colour_target_usage and
  textures_and_their_indices_on_vulkan hold it.
- rt's StageInKind::IndexedStepRate and the translator's
  Feature::KernelStageIn are gone. The diagnostics' StageIn-IndexedStepRate
  gap cannot occur and goes with its docs and the ledger's line.
  a_kernel_s_stage_in_is_fetched_by_the_stage_in_region_on_vulkan fetches
  an indexed step at rate 3 (the recording's row xi_rate3_o2_r4_g12) in
  place of expecting the refusal; refusals_count_by_kind counts the two
  forms left.
- The counts line folds rt's six restoring-make metrics as
  rt-restoring-makes, rt-restoring-make-drain-ns, rt-restoring-make-wait-ns,
  rt-restoring-make-wait-submissions, rt-restoring-makes-shared and
  rt-restoring-make-shared-wait-ns, after the Shared coherence codes.
  over_copies_fold_into_the_counts_by_their_rise holds them.

(cherry picked from commit 391961f3365b8366a9673b444b67cd7d13f5e6af)
2026-12-03 09:00:09 -08:00
..