translator: the identity domains' refusal names the first form the function holds that they do not lower
The identity gate (lower::select's identity_admits) answered Unsupported{IdentityDomains, NotImplemented}
for every plan it does not admit, with nothing saying which of its conditions failed. It now
names the first form the plan holds, in the refusal's symbol (diagnostics only), by what a
program does that takes it: a stage off the floor's push window, an encoder value it reads as a
push field outside the identity set, a buffer argument not reached by its device address, an
argument buffer's texture of a type, depth comparison, raw or cross-type read the identity arrays
do not take, a handle that reads its table entry beyond its element, a texture argument with
state beyond its resource ID, a sampler form (a texture argument sampled through a sampler the
identity sampling does not take, a sample of an argument buffer's texture, an argument buffer's
sampler, an array of samplers, a bicubic filter, a specialized sampler argument), a runtime fact
of bound state, or a descriptor. The checks and their conjunction are unchanged
(identity_refusal is None exactly where every condition held), so an admitted plan is lowered as
before; only the refusal's symbol is new, and only under the identity domains, which the new
runtime alone takes.
A test confirms which form argument buffers tier 2's pointer indexing takes (engine/ab_tier2's
ab_indexed: thread g reads the texture of element g of the argument buffers a pointer member of
the bound one reaches): on lavapipe and the M3 profile its plan reads the root table
(PushField::RootTableAddress), whose address the identity domains do not push, so it is refused
naming that, while the default domains compile it and the identity domains lower ab_copy and
ab_read. docs/API.md's identity paragraph names the form and says the symbol names the first one.
Verified: probe job m3-max-52000 (gem10, the gate change with the form unpinned) read
"an encoder value the function reads as RootTableAddress" for ab_indexed on lavapipe, and
a_bicubic_kernel_is_refused_under_the_identity_domains passed beside it; refusal_surface --check
is clean. The pinned test's run is the next check job.
This commit is contained in:
1 parent
88d69b65b8
commit
a36ac51121
3 files changed
+180
-54
No files matched your search
+8
-5
@@ -170,11 +170,14 @@ compile does. `DevicePolicy::default()` is `DevicePolicy::UNTRUSTED`:
|
||||
static there: no constant or binder decides one. So far they lower a kernel that reaches memory
|
||||
through its buffer slots and reads, writes, sizes or tests for nil its texture slots and its
|
||||
argument buffers' textures, and samples its texture slots through its runtime sampler slots
|
||||
and its constexpr samplers. Any other function is refused as `Unsupported{IdentityDomains}`:
|
||||
one that samples through an argument buffer's sampler or an array of samplers or samples an
|
||||
argument buffer's texture, emulates a sampler's anisotropy or bicubic filter, uses a texture buffer, a slot's levels or swizzle, a
|
||||
two-plane, extended-range or sRGB-twin form, reads an argument buffer's texture through another
|
||||
numeric type or as raw texels, or uses any other state of a texture or sampler beyond its ID.
|
||||
and its constexpr samplers. Any other function is refused as `Unsupported{IdentityDomains}`,
|
||||
whose symbol names the first such form the function holds: one that samples through an
|
||||
argument buffer's sampler or an array of samplers or samples an argument buffer's texture,
|
||||
emulates a sampler's anisotropy or bicubic filter, uses a texture buffer, a slot's levels or
|
||||
swizzle, a two-plane, extended-range or sRGB-twin form, reads an argument buffer's texture
|
||||
through another numeric type or as raw texels, reads the texture of an argument buffer that a
|
||||
pointer another argument buffer holds reaches (it reads the root table, `RootTableAddress`), or
|
||||
uses any other state of a texture or sampler beyond its ID.
|
||||
An argument buffer's texture reads the element at its ID's index masked to its low 16 bits,
|
||||
so a bad ID reads an element of the arrays ([RESOURCE-ID.md](RESOURCE-ID.md)); the change that
|
||||
first lowers an argument buffer's sampler masks its index the same way.
|
||||
|
||||
Reference in new issue
Block a user