Files
metal2vulkan/docs
Anees Iqbal 00e254ac29 validation: an out-of-bounds target is contained as its module's domains decide
containment read a module's facts as if every device took the resident
table and the handle table. The runtime's device takes the identity
domains (DevicePolicy), so a kernel case through the runtime whose target
is a buffer an argument buffer points to, or an argument buffer's texture
array, failed: the module has no resident roots and no handle table.

ModuleFacts now carries the policy of the device the module was compiled
for (Device::policy: the runtime's translator, the executor's own device,
and DevicePolicy::default() for the committed tier profiles, which are
made with it).

- Under the identity pointer domain a pointer loaded from memory is the
  address it holds, used as given: the runtime's README states that an
  access through a pointer loaded from memory is not checked. Such a
  target is contained as device-address with the new Check::Unchecked,
  and out_of_bounds_run refuses every case with an unchecked target
  before the make, as NotSupported::Uncontained with the new `unchecked`
  forms (serde default):
  not_supported{uncontained:unchecked loaded_pointer}.
- Under the identity handle domain an argument buffer's texture-array
  index is the resource id's index masked onto the descriptor arrays
  (the new Medium::ResourceId, resource-id:shader), whose elements no
  live texture owns are null descriptors: its read rule is
  ResidentTexels, as the handle table's.

ENGINE_EXECUTOR_ABI to vulkan-engine-v193.

Rows: the family D proof at 846f7c1428 (m3-max-61319) failed 5 cases
through the runtime on these facts. Expected at this commit: the 4
loaded-pointer cases 22f5d8ab9c, 570c5673f8, 85c504e02e and ad528203ee
move from failed to not_supported{uncontained:unchecked loaded_pointer};
the texture-array case a937d43a67 runs, contained as resource-id:shader.
The family D proof at this commit reads them.

Verified: unit tests the_identity_domains_leave_a_loaded_pointer_unchecked_
and_mask_a_resource_id (containment under both policies, the refusal's
label and text, the masked target's run), the in-layout read-rule test
over the resource-id medium, and the bless round trip of the new refusal;
the gate job is named on landing.
2026-11-20 21:27:20 -08:00
..