Translator: an argument buffer's texture read through a sampler takes its border texels from its resource ID's word
Metal 4.1's read(sampler, coord) of a texture an argument buffer holds was refused as
Unsupported{IdentityDomains} with cause HeapResource ("a texture handle that reads its table
entry beyond its element (Indexed ...)"): a read that may hand back the border texels made the
handle search's indexed form (Lookup::Indexed), whose uses read the border texels from a
handle-table entry, and the one form has no table. Metal gives the read to every guest device,
so it is built. The golden table's engine/kernel_read_through rt_heap_zero, rt_heap_ow and
rt_heap_arg, and the conformance cases read-through-a8, -heap-border, -heap-sampler, -r32f,
-rgba8 and -rgba8-swizzled, were refused.
The form is the slot's. Bits 0-11 of the texture's resource ID's word hold its border texels
(docs/RESOURCE-ID.md), and an argument buffer's member holds the whole ID, word included:
- AccessPlan::lookup no longer has an indexed form; a function with heap_border yields Element or
Flagged (alpha) as any other, which the admission takes;
- emit_identity_handle carries the word's low 14 bits (HANDLE_WORD, above the 16-bit element) in
every texture handle of such a function, ungated (the texture-buffer words keep their
TexelBufferWords gate where they alone need them);
- heap_element_index masks such a handle to its element at every use;
- heap_border_texels takes bits 0-11 of the carried word, and for a texture buffer whose word
holds a word layout's fields there, its format's border texels from its code, as a slot's read
does (words::slot_border_texels). It was an error stub;
- the read's words estimate counts that extraction (32 words) in place of two indexed flag reads.
Nothing builds Lookup::Indexed now, so it goes, with what only it used: HANDLE_ENTRY,
FLAG_BORDER_TEXELS, INDEXED_FLAGS_WORDS, heap_flags (a check for the indexed form; its two
callers wrap the handle themselves), the search's indexed arm and its test rows.
Test: engine_identity's
an_argument_buffer_textures_read_through_a_sampler_takes_its_border_texels_from_its_word compiles
rt_heap_zero, rt_heap_ow and rt_heap_arg on lavapipe, moltenvk-m3 and moltenvk-m3 without
robustImageAccess2. Each passes L3, plans heap_border, states no BorderTexels fact and no
specialization constant but the dispatch's, and on the CPU interpreter reads Metal's border
texels (metal::sampler::border_texel) of R32Float, RGBA8Unorm, A8Unorm and a swizzled RGBA8Unorm
for each entry's border colors, and the texel inside the texture. engine_texture_oob's
every_read_through_a_sampler_validates_or_is_refused_typed now validates the three entries where
it counted their refusal.
Conformance ledger (known-gaps-rt.tsv): the six `*` rows of those cases' rt_heap pipelines go.
With the pipelines made, each case runs whole, and llvmpipe's answers at 96 sites that a refusal
had left uncompared differ from Metal's by one f32 ulp in A8Unorm, RGBA8Unorm and swizzled
RGBA8Unorm texels. Those are the device's own 8-bit conversion (rule 1, note
device-texel-conversion), and each gets an llvmpipe row. docs/CONFORMANCE-COVERAGE.md is
regenerated.
Docs: the runtime README's forms list loses the entry for this read. API.md's identity paragraph
and RESOURCE-ID.md say an argument buffer's texture reads its border texels as a slot's does.
Engine inventory (public_fixture_expectations_engine.tsv): the 45 cells of
engine/kernel_read_through.ll's rt_heap_zero, rt_heap_ow and rt_heap_arg move from
Unsupported{IdentityDomains; NotImplemented} back to ok. Their .air.ll twins, which only macOS
assembles, move at the M3 bless.
SEMANTICS_VERSION 2360 -> 2361 (renumbered at landing: 2359 and 2360 went to checked naming and the seq_cst fence): the rt_heap cells of the golden table change from the refusal to
modules. The golden table is blessed at the next pin, not here. runtime-sources.sha256 moves for
memory/handles.rs alone: the deleted indexed form is translation code, and no run of an
unchanged artifact changes.
Verified, at this commit's tree:
- m3-max-84730, on the CPU with no device. Red: the new test and the read-through validation test
with the lowering and memory/handles.rs at the base fail (EXIT 100). Green: both pass, with the
search's tests (EXIT 0). fmt, signatures, clippy (plain, --cfg m2v_gpu, --cfg m2v_cpu_icd),
Rustdoc, private docs, doctests and scripts/api-docs pass. The metal2vulkan suites ran 3,494
tests, 3,493 passed, and the one failure is golden_hashes_match_the_table; the engine inventory
parts pass. Validation ran 1,348 tests, all passed, 2 skipped; conformance ran 1,053, all passed.
- m3-max-84829, on the CPU with no device: of the golden table's 28,950 changed lines, all are
"profile changed" lines of the table not yet blessed since the resident core's deletion, and 45
change a cell, every one an rt_heap cell of engine/kernel_read_through.ll, from the refusal to a
module.
- m3-max-84715, the pinned lavapipe image (llvmpipe, LLVM 23.1.1, 256 bits): the conformance
replay of the 13 read-through cases ends EXIT 0 with "the 96 row(s) above are exactly the open
gaps known-gaps-rt.tsv expects on this venue".
- m3-max-84619, on the Iris Xe (Mesa 26.2.6), at the same change on the base before the inventory
bless: the 13 read-through cases report 0 gap rows, EXIT 0.
This commit is contained in:
1 parent
6113e89e0c
commit
e5b7498833
17 files changed
+497
-232
No files matched your search
@@ -2086,12 +2086,102 @@ pixel-samplers-subnormal-zero Iris(R) Xe divergent case/output/const the digest
|
||||
pixel-samplers-subnormal-zero Apple M3 Max divergent case/output/const the digest is d2b0dd0910609edc836eaf77d970e58e8b5bf1584a81e5bbdd581f10260b7c09 on Metal and c0eaf2a2ef7c60f144bb181d8655edd9990787d055f42ba1f9c211a159f2eaf6 here The device's own answer (rule 1): `arg`, `const`, `norm` and `slot` differ from Metal's. Ours split as Metal's do: one digest across `arg` and `slot`; `const` its own; `norm` its own. A nearest sample at coordinates whose one axis is a subnormal or a zero of either sign: the device reads a subnormal coordinate by its own float controls, where Metal reads a normalized one as zero and a negative pixel one as texel -1. Notes `device-sampling` and `device-denormals`. The site records a digest alone, so the run names no coordinate.
|
||||
pixel-samplers-subnormal-zero Iris(R) Xe divergent case/output/slot the digest is 527c2d3be9d37505e6907a1303a4f8c6b432290236e2baae359b54fa908f931c on Metal and 56d55c4ae05afa7f478fed7a114db4f80097cfc5aeed7b86e1487eebf5e253ab here The device's own answer (rule 1): `arg`, `const` and `slot` differ from Metal's (`norm` reads Metal's answer). Ours split as Metal's do: one digest across `arg` and `slot`; `const` its own. A nearest sample at coordinates whose one axis is a subnormal or a zero of either sign: the device reads a subnormal coordinate by its own float controls, where Metal reads a normalized one as zero and a negative pixel one as texel -1. Notes `device-sampling` and `device-denormals`. The site records a digest alone, so the run names no coordinate.
|
||||
pixel-samplers-subnormal-zero Apple M3 Max divergent case/output/slot the digest is 527c2d3be9d37505e6907a1303a4f8c6b432290236e2baae359b54fa908f931c on Metal and 56d55c4ae05afa7f478fed7a114db4f80097cfc5aeed7b86e1487eebf5e253ab here The device's own answer (rule 1): `arg`, `const`, `norm` and `slot` differ from Metal's. Ours split as Metal's do: one digest across `arg` and `slot`; `const` its own; `norm` its own. A nearest sample at coordinates whose one axis is a subnormal or a zero of either sign: the device reads a subnormal coordinate by its own float controls, where Metal reads a normalized one as zero and a negative pixel one as texel -1. Notes `device-sampling` and `device-denormals`. The site records a digest alone, so the run names no coordinate.
|
||||
read-through-a8 * refused case/pipeline/rt_heap_zero Err(Error::Translation("the translator made no pipeline: unsupported: IdentityDomains (a texture handle that reads its table entry beyond its element (Indexed { alpha: false, class: false, red_blue: false, unreadable: false })): HeapResource; needs NotImplemented")) refused: no stream uses it yet (states-only play 11-19, m3-max-56371-56373, 56375, player 44668b439f: 32 streams, every render and compute pipeline state made). The translator refuses the state (IdentityDomains, cause HeapResource: a texture handle that reads its table entry beyond its element); rt README, Known gaps of pipeline states.
|
||||
read-through-heap-border * refused case/pipeline/rt_heap_ow Err(Error::Translation("the translator made no pipeline: unsupported: IdentityDomains (a texture handle that reads its table entry beyond its element (Indexed { alpha: false, class: false, red_blue: false, unreadable: false })): HeapResource; needs NotImplemented")) refused: no stream uses it yet (states-only play 11-19, m3-max-56371-56373, 56375, player 44668b439f: 32 streams, every render and compute pipeline state made). The translator refuses the state (IdentityDomains, cause HeapResource: a texture handle that reads its table entry beyond its element); rt README, Known gaps of pipeline states.
|
||||
read-through-heap-sampler * refused case/pipeline/rt_heap_arg Err(Error::Translation("the translator made no pipeline: unsupported: IdentityDomains (a texture handle that reads its table entry beyond its element (Indexed { alpha: false, class: false, red_blue: false, unreadable: false })): HeapResource; needs NotImplemented")) refused: no stream uses it yet (states-only play 11-19, m3-max-56371-56373, 56375, player 44668b439f: 32 streams, every render and compute pipeline state made). The translator refuses the state (IdentityDomains, cause HeapResource: a texture handle that reads its table entry beyond its element); rt README, Known gaps of pipeline states.
|
||||
read-through-r32f * refused case/pipeline/rt_heap_zero Err(Error::Translation("the translator made no pipeline: unsupported: IdentityDomains (a texture handle that reads its table entry beyond its element (Indexed { alpha: false, class: false, red_blue: false, unreadable: false })): HeapResource; needs NotImplemented")) refused: no stream uses it yet (states-only play 11-19, m3-max-56371-56373, 56375, player 44668b439f: 32 streams, every render and compute pipeline state made). The translator refuses the state (IdentityDomains, cause HeapResource: a texture handle that reads its table entry beyond its element); rt README, Known gaps of pipeline states.
|
||||
read-through-rgba8 * refused case/pipeline/rt_heap_zero Err(Error::Translation("the translator made no pipeline: unsupported: IdentityDomains (a texture handle that reads its table entry beyond its element (Indexed { alpha: false, class: false, red_blue: false, unreadable: false })): HeapResource; needs NotImplemented")) refused: no stream uses it yet (states-only play 11-19, m3-max-56371-56373, 56375, player 44668b439f: 32 streams, every render and compute pipeline state made). The translator refuses the state (IdentityDomains, cause HeapResource: a texture handle that reads its table entry beyond its element); rt README, Known gaps of pipeline states.
|
||||
read-through-rgba8-swizzled * refused case/pipeline/rt_heap_zero Err(Error::Translation("the translator made no pipeline: unsupported: IdentityDomains (a texture handle that reads its table entry beyond its element (Indexed { alpha: false, class: false, red_blue: false, unreadable: false })): HeapResource; needs NotImplemented")) refused: no stream uses it yet (states-only play 11-19, m3-max-56371-56373, 56375, player 44668b439f: 32 streams, every render and compute pipeline state made). The translator refuses the state (IdentityDomains, cause HeapResource: a texture handle that reads its table entry beyond its element); rt README, Known gaps of pipeline states.
|
||||
read-through-a8 llvmpipe divergent case/words/rt_alpha 2 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-a8 llvmpipe divergent case/words/rt_arg/border-black 3 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-a8 llvmpipe divergent case/words/rt_arg/border-mip 2 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-a8 llvmpipe divergent case/words/rt_arg/border-white 3 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-a8 llvmpipe divergent case/words/rt_arg/edge 4 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-a8 llvmpipe divergent case/words/rt_arg/linear-mip 3 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-a8 llvmpipe divergent case/words/rt_arg/mirror-clamp 4 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-a8 llvmpipe divergent case/words/rt_arg/mirrored-repeat 4 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-a8 llvmpipe divergent case/words/rt_arg/mixed-mip 2 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-a8 llvmpipe divergent case/words/rt_arg/repeat 4 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-a8 llvmpipe divergent case/words/rt_arg/zero 3 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-a8 llvmpipe divergent case/words/rt_arg/zero-white 3 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-a8 llvmpipe divergent case/words/rt_border_ob 2 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-a8 llvmpipe divergent case/words/rt_border_ow 2 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-a8 llvmpipe divergent case/words/rt_filtered 6 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-a8 llvmpipe divergent case/words/rt_heap_zero 2 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-a8 llvmpipe divergent case/words/rt_mip 4 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-a8 llvmpipe divergent case/words/rt_mirrored_offset 7 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-a8 llvmpipe divergent case/words/rt_mixed 5 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-a8 llvmpipe divergent case/words/rt_repeat 6 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-a8 llvmpipe divergent case/words/rt_table/border-black 2 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-a8 llvmpipe divergent case/words/rt_table/border-white 2 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-a8 llvmpipe divergent case/words/rt_table/edge 6 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-a8 llvmpipe divergent case/words/rt_table/linear-mip 4 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-a8 llvmpipe divergent case/words/rt_table/mirror-clamp 6 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-a8 llvmpipe divergent case/words/rt_table/mirrored-repeat 6 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-a8 llvmpipe divergent case/words/rt_table/mixed-mip 3 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-a8 llvmpipe divergent case/words/rt_table/repeat 6 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-a8 llvmpipe divergent case/words/rt_table/zero 2 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-a8 llvmpipe divergent case/words/rt_table/zero-white 2 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-a8 llvmpipe divergent case/words/rt_zero 2 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8 llvmpipe divergent case/words/rt_alpha 6 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8 llvmpipe divergent case/words/rt_arg/border-black 8 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8 llvmpipe divergent case/words/rt_arg/border-mip 6 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8 llvmpipe divergent case/words/rt_arg/border-white 8 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8 llvmpipe divergent case/words/rt_arg/edge 22 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8 llvmpipe divergent case/words/rt_arg/linear-mip 22 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8 llvmpipe divergent case/words/rt_arg/mirror-clamp 22 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8 llvmpipe divergent case/words/rt_arg/mirrored-repeat 22 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8 llvmpipe divergent case/words/rt_arg/mixed-mip 10 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8 llvmpipe divergent case/words/rt_arg/repeat 22 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8 llvmpipe divergent case/words/rt_arg/zero 8 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8 llvmpipe divergent case/words/rt_arg/zero-white 8 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8 llvmpipe divergent case/words/rt_border_ob 8 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8 llvmpipe divergent case/words/rt_border_ow 8 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8 llvmpipe divergent case/words/rt_filtered 24 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8 llvmpipe divergent case/words/rt_heap_zero 8 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8 llvmpipe divergent case/words/rt_mip 23 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8 llvmpipe divergent case/words/rt_mip_zero 6 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8 llvmpipe divergent case/words/rt_mirrored_offset 25 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8 llvmpipe divergent case/words/rt_mixed 14 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8 llvmpipe divergent case/words/rt_repeat 24 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8 llvmpipe divergent case/words/rt_table/border-black 8 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8 llvmpipe divergent case/words/rt_table/border-mip 6 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8 llvmpipe divergent case/words/rt_table/border-white 8 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8 llvmpipe divergent case/words/rt_table/edge 24 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8 llvmpipe divergent case/words/rt_table/linear-mip 23 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8 llvmpipe divergent case/words/rt_table/mirror-clamp 24 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8 llvmpipe divergent case/words/rt_table/mirrored-repeat 24 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8 llvmpipe divergent case/words/rt_table/mixed-mip 12 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8 llvmpipe divergent case/words/rt_table/repeat 24 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8 llvmpipe divergent case/words/rt_table/zero 8 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8 llvmpipe divergent case/words/rt_table/zero-white 8 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8 llvmpipe divergent case/words/rt_zero 8 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8-swizzled llvmpipe divergent case/words/rt_arg/border-black 3 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's (where a site's one element differs, Metal 0x3EC2C2C3 against our 0x3EC2C2C4, the ulp above). Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8-swizzled llvmpipe divergent case/words/rt_arg/border-mip 2 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's (where a site's one element differs, Metal 0x3EC2C2C3 against our 0x3EC2C2C4, the ulp above). Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8-swizzled llvmpipe divergent case/words/rt_arg/border-white 3 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's (where a site's one element differs, Metal 0x3EC2C2C3 against our 0x3EC2C2C4, the ulp above). Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8-swizzled llvmpipe divergent case/words/rt_arg/edge 4 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's (where a site's one element differs, Metal 0x3EC2C2C3 against our 0x3EC2C2C4, the ulp above). Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8-swizzled llvmpipe divergent case/words/rt_arg/linear-mip 4 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's (where a site's one element differs, Metal 0x3EC2C2C3 against our 0x3EC2C2C4, the ulp above). Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8-swizzled llvmpipe divergent case/words/rt_arg/mirror-clamp 4 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's (where a site's one element differs, Metal 0x3EC2C2C3 against our 0x3EC2C2C4, the ulp above). Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8-swizzled llvmpipe divergent case/words/rt_arg/mirrored-repeat 4 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's (where a site's one element differs, Metal 0x3EC2C2C3 against our 0x3EC2C2C4, the ulp above). Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8-swizzled llvmpipe divergent case/words/rt_arg/mixed-mip 2 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's (where a site's one element differs, Metal 0x3EC2C2C3 against our 0x3EC2C2C4, the ulp above). Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8-swizzled llvmpipe divergent case/words/rt_arg/repeat 4 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's (where a site's one element differs, Metal 0x3EC2C2C3 against our 0x3EC2C2C4, the ulp above). Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8-swizzled llvmpipe divergent case/words/rt_arg/zero 3 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's (where a site's one element differs, Metal 0x3EC2C2C3 against our 0x3EC2C2C4, the ulp above). Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8-swizzled llvmpipe divergent case/words/rt_arg/zero-white 3 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's (where a site's one element differs, Metal 0x3EC2C2C3 against our 0x3EC2C2C4, the ulp above). Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8-swizzled llvmpipe divergent case/words/rt_border_ob 2 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's (where a site's one element differs, Metal 0x3EC2C2C3 against our 0x3EC2C2C4, the ulp above). Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8-swizzled llvmpipe divergent case/words/rt_border_ow 2 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's (where a site's one element differs, Metal 0x3EC2C2C3 against our 0x3EC2C2C4, the ulp above). Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8-swizzled llvmpipe divergent case/words/rt_filtered 6 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's (where a site's one element differs, Metal 0x3EC2C2C3 against our 0x3EC2C2C4, the ulp above). Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8-swizzled llvmpipe divergent case/words/rt_heap_zero 2 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's (where a site's one element differs, Metal 0x3EC2C2C3 against our 0x3EC2C2C4, the ulp above). Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8-swizzled llvmpipe divergent case/words/rt_mip 5 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's (where a site's one element differs, Metal 0x3EC2C2C3 against our 0x3EC2C2C4, the ulp above). Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8-swizzled llvmpipe divergent case/words/rt_mip_zero 1 element differs (U32): Metal 1052951235 (0x3ec2c2c3), ours 1052951236 (0x3ec2c2c4) The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's (where a site's one element differs, Metal 0x3EC2C2C3 against our 0x3EC2C2C4, the ulp above). Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8-swizzled llvmpipe divergent case/words/rt_mirrored_offset 7 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's (where a site's one element differs, Metal 0x3EC2C2C3 against our 0x3EC2C2C4, the ulp above). Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8-swizzled llvmpipe divergent case/words/rt_mixed 5 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's (where a site's one element differs, Metal 0x3EC2C2C3 against our 0x3EC2C2C4, the ulp above). Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8-swizzled llvmpipe divergent case/words/rt_repeat 6 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's (where a site's one element differs, Metal 0x3EC2C2C3 against our 0x3EC2C2C4, the ulp above). Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8-swizzled llvmpipe divergent case/words/rt_table/border-black 2 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's (where a site's one element differs, Metal 0x3EC2C2C3 against our 0x3EC2C2C4, the ulp above). Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8-swizzled llvmpipe divergent case/words/rt_table/border-mip 1 element differs (U32): Metal 1052951235 (0x3ec2c2c3), ours 1052951236 (0x3ec2c2c4) The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's (where a site's one element differs, Metal 0x3EC2C2C3 against our 0x3EC2C2C4, the ulp above). Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8-swizzled llvmpipe divergent case/words/rt_table/border-white 2 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's (where a site's one element differs, Metal 0x3EC2C2C3 against our 0x3EC2C2C4, the ulp above). Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8-swizzled llvmpipe divergent case/words/rt_table/edge 6 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's (where a site's one element differs, Metal 0x3EC2C2C3 against our 0x3EC2C2C4, the ulp above). Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8-swizzled llvmpipe divergent case/words/rt_table/linear-mip 5 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's (where a site's one element differs, Metal 0x3EC2C2C3 against our 0x3EC2C2C4, the ulp above). Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8-swizzled llvmpipe divergent case/words/rt_table/mirror-clamp 6 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's (where a site's one element differs, Metal 0x3EC2C2C3 against our 0x3EC2C2C4, the ulp above). Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8-swizzled llvmpipe divergent case/words/rt_table/mirrored-repeat 6 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's (where a site's one element differs, Metal 0x3EC2C2C3 against our 0x3EC2C2C4, the ulp above). Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8-swizzled llvmpipe divergent case/words/rt_table/mixed-mip 4 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's (where a site's one element differs, Metal 0x3EC2C2C3 against our 0x3EC2C2C4, the ulp above). Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8-swizzled llvmpipe divergent case/words/rt_table/repeat 6 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's (where a site's one element differs, Metal 0x3EC2C2C3 against our 0x3EC2C2C4, the ulp above). Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8-swizzled llvmpipe divergent case/words/rt_table/zero 2 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's (where a site's one element differs, Metal 0x3EC2C2C3 against our 0x3EC2C2C4, the ulp above). Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8-swizzled llvmpipe divergent case/words/rt_table/zero-white 2 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's (where a site's one element differs, Metal 0x3EC2C2C3 against our 0x3EC2C2C4, the ulp above). Note `device-texel-conversion`. Open: nothing.
|
||||
read-through-rgba8-swizzled llvmpipe divergent case/words/rt_zero 2 elements differ (U32), the largest difference 1 The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the reciprocal product, so a code's value is within one `f32` ulp of Metal's (where a site's one element differs, Metal 0x3EC2C2C3 against our 0x3EC2C2C4, the ulp above). Note `device-texel-conversion`. Open: nothing.
|
||||
read-write-srgb-unorm-views llvmpipe divergent case/over-a-buffer/texels 438 elements differ (U32), the largest difference 1 The device's own answer (rule 1): the device converts an 8-bit code by the reciprocal product, so a code's value is one `f32` ulp off Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-write-srgb-unorm-views llvmpipe divergent case/plain/texels 438 elements differ (U32), the largest difference 1 The device's own answer (rule 1): the device converts an 8-bit code by the reciprocal product, so a code's value is one `f32` ulp off Metal's. Note `device-texel-conversion`. Open: nothing.
|
||||
read-write-tier-held * divergent case/MTLPixelFormatA8Unorm/beyond/stored-bytes 64 elements differ (U8), the largest difference 238 Known gap (rt README, Known gaps of textures): the kernel writes a texture with no storage element on this device through the argument buffer, with no use_resource declaring the write, which is outside documented Metal: the write is dropped and the storage read there answers zeros.
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -4542,9 +4542,6 @@ cache is answered compile-required on both.
|
||||
own or as the raw texels of an extended-range member, a read of one that decodes an
|
||||
extended-range member, and a handle that reads its table entry beyond its element: no test
|
||||
yet;
|
||||
- Metal 4.1's `read(sampler, coord)` of an argument buffer's texture, through a constexpr sampler
|
||||
or a sampler argument: the golden table holds the refusal (`engine/kernel_read_through`'s
|
||||
`rt_heap_zero`, `rt_heap_ow` and `rt_heap_arg`).
|
||||
|
||||
The states-only plays of the 26 kept replay streams on lavapipe, each making every pipeline state
|
||||
its stream makes, refuse none of their render or compute states, a refusal under the identity
|
||||
|
||||
@@ -1 +1 @@
|
||||
7f7dcbcbc4a6b43e2c5fb3e192fbc10f4f1d95fc63eefbaa9ef3e1a5494f3b6f
|
||||
b369da90281b9e18a37347585baa6c31498764bc993d780ed3ac76a9a2489c60
|
||||
Vendored
+1
-1
@@ -60,7 +60,7 @@ mod tests;
|
||||
/// unchanged version, and its bless records the version. Independent of the crate's version and of
|
||||
/// [`ARTIFACT_FORMAT_VERSION`]. The commit that bumps it says what changed; this comment keeps no
|
||||
/// history.
|
||||
pub const SEMANTICS_VERSION: u32 = 2360;
|
||||
pub const SEMANTICS_VERSION: u32 = 2361;
|
||||
|
||||
/// The byte-layout version of encoded artifacts (`CompiledFunction::to_bytes` and the
|
||||
/// [`PipelineArtifact`] encodings). Every encoded artifact carries it, and a decode under another
|
||||
|
||||
@@ -1240,9 +1240,10 @@ pub fn emit(
|
||||
/// element of those arrays (0, nil, the null descriptor), with the word's missing-alpha bit
|
||||
/// (`TextureWord::OUT_OF_BOUNDS_ALPHA_ONE`) moved to `HANDLE_ALPHA_ONE` where the function's
|
||||
/// handles carry it (`memory::handles::Lookup::Flagged`'s `alpha`), and the word's low bits
|
||||
/// above the index where the function reaches an argument buffer's texture buffer held as words
|
||||
/// and its stage's `SpecKey::TexelBufferWords` holds (`lower::texture::HANDLE_WORD`). The program
|
||||
/// writes the ID, so
|
||||
/// above the index where the function reads an argument buffer's texture through a sampler, whose
|
||||
/// border texels they hold (`AccessPlan::heap_border`), or reaches an argument buffer's texture
|
||||
/// buffer held as words and its stage's `SpecKey::TexelBufferWords` holds
|
||||
/// (`lower::texture::HANDLE_WORD`). The program writes the ID, so
|
||||
/// the mask keeps any value it holds inside the arrays: a bad ID reads the element at its masked
|
||||
/// index. The admission allows no other form (`select::identity_admits`).
|
||||
fn emit_identity_handle(
|
||||
@@ -1271,9 +1272,11 @@ fn emit_identity_handle(
|
||||
return Err(cx.fail(format!("an identity handle of the {other:?} form")));
|
||||
}
|
||||
};
|
||||
// Where the function reaches an argument buffer's texture buffer held as words, the word's low
|
||||
// bits, which the heap accesses mask off.
|
||||
let h = match cx.plan.families.texture.words.heap {
|
||||
// Where the function reads an argument buffer's texture through a sampler, or reaches an
|
||||
// argument buffer's texture buffer held as words, the word's low bits, which the heap accesses
|
||||
// mask off.
|
||||
let border = cx.plan.families.access.heap_border;
|
||||
let h = match border || cx.plan.families.texture.words.heap {
|
||||
true => {
|
||||
use crate::lower::texture::{HANDLE_WORD, HANDLE_WORD_SHIFT};
|
||||
let word = fb.composite_extract(id, &[1])?;
|
||||
@@ -1281,10 +1284,15 @@ fn emit_identity_handle(
|
||||
let low = fb.binary(BinOp::BitwiseAnd, word, bits)?;
|
||||
let shift = k32(fb, HANDLE_WORD_SHIFT)?;
|
||||
let carried = fb.binary(BinOp::ShiftLeftLogical, low, shift)?;
|
||||
// Only where the stage's `SpecKey::TexelBufferWords` holds.
|
||||
let gate = crate::lower::texture::words_gate(cx, fb)?;
|
||||
let none = k32(fb, 0)?;
|
||||
let carried = fb.select(gate, carried, none)?;
|
||||
// For the words alone, only where the stage's `SpecKey::TexelBufferWords` holds.
|
||||
let carried = match border {
|
||||
true => carried,
|
||||
false => {
|
||||
let gate = crate::lower::texture::words_gate(cx, fb)?;
|
||||
let none = k32(fb, 0)?;
|
||||
fb.select(gate, carried, none)?
|
||||
}
|
||||
};
|
||||
fb.binary(BinOp::BitwiseOr, h, carried)?
|
||||
}
|
||||
false => h,
|
||||
|
||||
@@ -834,10 +834,9 @@ pub struct AccessPlan {
|
||||
/// (`memory::handles::Lookup::Flagged`).
|
||||
pub heap_unreadable: bool,
|
||||
/// A heap texture's read through a sampler may hand back its border texels
|
||||
/// (`lower::texture::Through`), which its handle-table entry holds
|
||||
/// (`memory::handles::FLAG_BORDER_TEXELS`): the search yields each heap handle's entry index
|
||||
/// beside its element (`memory::handles::Lookup::Indexed`), by which the read loads them, and
|
||||
/// every use reads the entry's other flags it needs from the entry.
|
||||
/// (`lower::texture::Through`), which bits 0-11 of the texture's resource ID's word hold
|
||||
/// (`docs/RESOURCE-ID.md`), as they do a slot's: each heap handle carries its word's low bits
|
||||
/// (`lower::texture::HANDLE_WORD`), which the read takes them from.
|
||||
pub heap_border: bool,
|
||||
/// The relaxed atomic loads an exit of a loop holding them depends on ([`atomic::spin`]): each
|
||||
/// acquires its memory. Planned before any instruction is selected.
|
||||
@@ -855,14 +854,7 @@ impl AccessPlan {
|
||||
use crate::memory::handles::Lookup;
|
||||
let (alpha, class, red_blue) = (self.heap_alpha, self.carries_class(), self.heap_red_blue);
|
||||
let unreadable = self.heap_unreadable;
|
||||
if self.heap_border {
|
||||
Lookup::Indexed {
|
||||
alpha,
|
||||
class,
|
||||
red_blue,
|
||||
unreadable,
|
||||
}
|
||||
} else if alpha || class || red_blue || unreadable {
|
||||
if alpha || class || red_blue || unreadable {
|
||||
Lookup::Flagged {
|
||||
alpha,
|
||||
class,
|
||||
|
||||
@@ -561,10 +561,18 @@ pub(crate) struct HeapElement {
|
||||
/// The element of heap handle `h` (as the function's handle-table search yields it): the handle
|
||||
/// masked to its element where the search carries anything beside it
|
||||
/// (`memory::handles::Lookup::element_mask`), or, under the identity domains, where the handle
|
||||
/// carries its word's low bits (`words::HANDLE_WORD`, where the stage's
|
||||
/// carries its word's low bits (`words::HANDLE_WORD`: always where the function reads a heap
|
||||
/// texture's border texels, `AccessPlan::heap_border`, else where the stage's
|
||||
/// `SpecKey::TexelBufferWords` holds), else the handle itself.
|
||||
fn heap_element_index(cx: &EmitCx<'_>, fb: &mut FunctionBuilder<'_>, h: SValue) -> BResult<SValue> {
|
||||
let form = cx.plan.families.access.lookup();
|
||||
let access = &cx.plan.families.access;
|
||||
// Every handle carries its word's low bits where the function reads a heap texture's border
|
||||
// texels (`AccessPlan::heap_border`).
|
||||
if access.heap_border {
|
||||
let element = u32s(fb, 1, crate::pipeline::link::IDENTITY_TEXTURES - 1)?;
|
||||
return fb.binary(BinOp::BitwiseAnd, h, element);
|
||||
}
|
||||
let form = access.lookup();
|
||||
let carried = cx.plan.families.texture.words.heap;
|
||||
let mask = match (carried, form.element_mask()) {
|
||||
(false, None) => return Ok(h),
|
||||
@@ -584,36 +592,34 @@ fn heap_element_index(cx: &EmitCx<'_>, fb: &mut FunctionBuilder<'_>, h: SValue)
|
||||
/// The flags of a heap handle its uses read (its texel class, red-blue order and
|
||||
/// out-of-bounds-alpha flag, as the function's search reads them), in the layout of the handle
|
||||
/// a flagged search yields (`memory::handles::Lookup::Flagged`: `HANDLE_TEXEL_CLASS`,
|
||||
/// `HANDLE_RED_BLUE`, `HANDLE_ALPHA_ONE`). The texture family makes one only through
|
||||
/// [`heap_flags`], so a handle that carries its entry's index in those bits (`Lookup::Indexed`)
|
||||
/// never reaches a reader of them.
|
||||
/// `HANDLE_RED_BLUE`, `HANDLE_ALPHA_ONE`): the handle itself, which carries them.
|
||||
#[derive(Clone, Copy)]
|
||||
pub(crate) struct HeapFlags(pub(super) SValue);
|
||||
|
||||
/// The flags of heap handle `h`: the handle itself, which carries them. A handle that reads its
|
||||
/// table entry beyond its element (`memory::handles::Lookup::Indexed`) has no table to read: the
|
||||
/// identity domains refuse it before emission (`select::identity_refusal`).
|
||||
pub(crate) fn heap_flags(
|
||||
cx: &mut EmitCx<'_>,
|
||||
_: &mut FunctionBuilder<'_>,
|
||||
h: SValue,
|
||||
) -> BResult<HeapFlags> {
|
||||
use crate::memory::handles::Lookup;
|
||||
if matches!(cx.plan.families.access.lookup(), Lookup::Indexed { .. }) {
|
||||
return Err(cx.fail("an indexed heap handle, which has no table"));
|
||||
}
|
||||
Ok(HeapFlags(h))
|
||||
}
|
||||
|
||||
/// The border texels of the texture of heap handle `h`, which only a handle that reads its table
|
||||
/// entry (`memory::handles::Lookup::Indexed`) has: the identity domains refuse that handle before
|
||||
/// emission (`select::identity_refusal`).
|
||||
/// The border texels of the texture of heap handle `h`: a `u32` in the layout of a slot's
|
||||
/// (`emit::through`'s `border_bits`), bits 0-11 of the resource ID's word the handle carries
|
||||
/// (`words::HANDLE_WORD`, `AccessPlan::heap_border`), as a slot's are its resource ID's; for a
|
||||
/// texture buffer, `buffer`, whose word holds a word layout's fields there
|
||||
/// (`TextureWord::TEXEL_BUFFER_LAYOUT`), its format's from its code.
|
||||
pub(super) fn heap_border_texels(
|
||||
cx: &mut EmitCx<'_>,
|
||||
_: &mut FunctionBuilder<'_>,
|
||||
_: SValue,
|
||||
fb: &mut FunctionBuilder<'_>,
|
||||
h: SValue,
|
||||
buffer: bool,
|
||||
) -> BResult<SValue> {
|
||||
Err(cx.fail("a heap read's border texels, which only a handle table holds"))
|
||||
let shift = u32s(fb, 1, super::words::HANDLE_WORD_SHIFT)?;
|
||||
let word = fb.binary(BinOp::ShiftRightLogical, h, shift)?;
|
||||
let low = u32s(fb, 1, super::words::HANDLE_WORD)?;
|
||||
let word = fb.binary(BinOp::BitwiseAnd, word, low)?;
|
||||
let mask = u32s(
|
||||
fb,
|
||||
1,
|
||||
crate::metal::resource_word::TextureWord::BORDER_TEXELS,
|
||||
)?;
|
||||
let bits = fb.binary(BinOp::BitwiseAnd, word, mask)?;
|
||||
match buffer {
|
||||
true => super::words::slot_border_texels(fb, word, bits),
|
||||
false => Ok(bits),
|
||||
}
|
||||
}
|
||||
|
||||
/// Whether heap handle flags `h` ([`HeapElement::flagged`]) have [`HANDLE_ALPHA_ONE`] set:
|
||||
@@ -659,7 +665,7 @@ fn heap_element_of(
|
||||
let mut element = heap_element_index(cx, fb, h)?;
|
||||
if unreadable {
|
||||
use crate::memory::handles::HANDLE_STORAGE_UNREADABLE;
|
||||
let flags = heap_flags(cx, fb, h)?;
|
||||
let flags = HeapFlags(h);
|
||||
let bit = u32s(fb, 1, HANDLE_STORAGE_UNREADABLE)?;
|
||||
let set = fb.binary(BinOp::BitwiseAnd, flags.0, bit)?;
|
||||
let zero = u32s(fb, 1, 0)?;
|
||||
@@ -668,7 +674,7 @@ fn heap_element_of(
|
||||
element = fb.select(readable, element, null)?;
|
||||
}
|
||||
let flagged = match cx.plan.families.access.heap_alpha {
|
||||
true => Some(heap_flags(cx, fb, h)?),
|
||||
true => Some(HeapFlags(h)),
|
||||
false => None,
|
||||
};
|
||||
let p = fb.access_chain_non_uniform(base, element)?;
|
||||
|
||||
@@ -346,8 +346,8 @@ pub(super) fn finish(
|
||||
/// texel for border color `b` reads 1): a slot's bits 0-11 of its resource ID's word
|
||||
/// (`TextureWord::BORDER_TEXELS`), but for a texture buffer of a format with a word layout, whose
|
||||
/// word holds its fields there (`TextureWord::TEXEL_BUFFER_LAYOUT`), its format's from its code; or
|
||||
/// a heap element's handle-table entry's (`memory::handles::FLAG_BORDER_TEXELS`), which the entry
|
||||
/// index its handle carries names.
|
||||
/// a heap element's from the word its handle carries, a texture buffer's as a slot's
|
||||
/// ([`super::heap_border_texels`]).
|
||||
fn border_bits(
|
||||
cx: &mut EmitCx<'_>,
|
||||
fb: &mut FunctionBuilder<'_>,
|
||||
@@ -368,9 +368,11 @@ fn border_bits(
|
||||
_ => Ok(bits),
|
||||
}
|
||||
}
|
||||
ImageRef::Heap { handle, .. } => {
|
||||
ImageRef::Heap { group, handle } => {
|
||||
let h = cx.operand(fb, handle)?;
|
||||
super::heap_border_texels(cx, fb, h)
|
||||
let heap = cx.plan.families.texture.heap.get(&group);
|
||||
let buffer = heap.and_then(|h| h.decl).map(|d| d.dim) == Some(Dim::Buffer);
|
||||
super::heap_border_texels(fb, h, buffer)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -89,13 +89,11 @@
|
||||
//!
|
||||
//! So the level, plane coordinate and layer are addressed before the access, and only a sample
|
||||
//! index can be out of bounds as a plain read's, contained as above. A heap element's border
|
||||
//! texels are its handle-table entry's (`memory::handles::FLAG_BORDER_TEXELS`, the binder's
|
||||
//! `border_texels` of the resident texture's format and swizzle), which the read loads from the
|
||||
//! entry its handle names (`memory::handles::Lookup::Indexed`), for a constexpr sampler's color
|
||||
//! or a runtime or argument-buffer sampler's word's alike. A `ulong` texel's border is not
|
||||
//! implemented. A cube's read through a sampler (unclamped on the M3), a sparse one's (its
|
||||
//! residency unmeasured) and a `read_write` texture's at a computed level (Metal 4.1 has no such
|
||||
//! overload) are refused.
|
||||
//! texels are bits 0-11 of its resource ID's word, which its handle carries (`HANDLE_WORD`), as a
|
||||
//! slot's are its resource ID's, for a constexpr sampler's color or a runtime or argument-buffer
|
||||
//! sampler's word's alike. A `ulong` texel's border is not implemented. A cube's read through a
|
||||
//! sampler (unclamped on the M3), a sparse one's (its residency unmeasured) and a `read_write`
|
||||
//! texture's at a computed level (Metal 4.1 has no such overload) are refused.
|
||||
//!
|
||||
//! **Storage levels**. A storage access reaches its view's base level only
|
||||
//! (`OpImageRead`/`OpImageWrite` take no `Lod`). A storage slot that is read or written at a level
|
||||
@@ -353,10 +351,9 @@ pub struct Read {
|
||||
/// alpha); the level views' count, index clamp, level test, and select; a heap element's access
|
||||
/// chain, load, and null select or guard; the sparse arm ([`RESIDENCY_WORDS`]) and the word's
|
||||
/// select outside the image, with its own in-bounds test where the shader has none; a read
|
||||
/// through a sampler's addressing ([`Through::words`]), and a heap element's border texels and
|
||||
/// the flags its uses then read from its handle-table entry
|
||||
/// (`memory::handles::INDEXED_FLAGS_WORDS`); and a `half` texel's exact rounding, or an sRGB
|
||||
/// texel's raw decode.
|
||||
/// through a sampler's addressing ([`Through::words`]), and a heap element's border texels from
|
||||
/// the word its handle carries (a shift and two masks, with their constants); and a `half`
|
||||
/// texel's exact rounding, or an sRGB texel's raw decode.
|
||||
fn read_words(r: &Read) -> u32 {
|
||||
64 + if r.checked() { 80 } else { 0 }
|
||||
+ if r.residency {
|
||||
@@ -369,9 +366,7 @@ fn read_words(r: &Read) -> u32 {
|
||||
+ if r.image.heap() { 32 } else { 0 }
|
||||
+ r.through.map_or(0, Through::words)
|
||||
+ match r.through {
|
||||
Some(t) if r.image.heap() && t.sampler.bordered() => {
|
||||
2 * crate::memory::handles::INDEXED_FLAGS_WORDS
|
||||
}
|
||||
Some(t) if r.image.heap() && t.sampler.bordered() => 32,
|
||||
_ => 0,
|
||||
}
|
||||
+ if r.srgb_codes {
|
||||
@@ -2267,10 +2262,9 @@ fn constant_read_sampler(state: &crate::air::abi::SamplerState) -> ReadSampler {
|
||||
/// Plan what read through a sampler `t` of `image` reads besides the image: a runtime slot's
|
||||
/// word (`RuntimeSlot::reads`), and where an index outside the level may read the border texel, a
|
||||
/// slot's `BorderTexels` specialization (`RuntimeFact::BorderTexels`; under the identity domains
|
||||
/// its resource ID's word holds them, `emit::identity_id`), or a heap element's handle-table
|
||||
/// entry's (`memory::handles::FLAG_BORDER_TEXELS`), which the module's search then names by its
|
||||
/// index in the handle (`AccessPlan::heap_border`). A `ulong` texel's border, which is not
|
||||
/// measured, is not implemented.
|
||||
/// its resource ID's word holds them, `emit::identity_id`), or a heap element's, which its
|
||||
/// resource ID's word holds and its handle then carries (`AccessPlan::heap_border`). A `ulong`
|
||||
/// texel's border, which is not measured, is not implemented.
|
||||
fn select_through(
|
||||
cx: &mut SelectCx<'_>,
|
||||
image: ImageRef,
|
||||
|
||||
@@ -162,7 +162,9 @@ fn held(codes: u64) -> impl Iterator<Item = TexelWords> {
|
||||
}
|
||||
|
||||
/// Under the identity domains, where a function reaches an argument buffer's texture buffer held as
|
||||
/// words ([`WordsPlan::heap`]), each texture handle carries the low 14 bits of its resource ID's
|
||||
/// words ([`WordsPlan::heap`]) or reads an argument buffer's texture through a sampler
|
||||
/// (`AccessPlan::heap_border`, whose border texels `TextureWord::BORDER_TEXELS` are), each
|
||||
/// texture handle carries the low 14 bits of its resource ID's
|
||||
/// word (`TextureWord::TEXEL_BUFFER_FIELDS`, the out-of-bounds alpha and
|
||||
/// `TextureWord::TEXEL_BUFFER_LAYOUT`) from bit
|
||||
/// [`HANDLE_WORD_SHIFT`], above its element (below `pipeline::link::IDENTITY_TEXTURES`, 16 bits) and
|
||||
@@ -183,6 +185,7 @@ const _: () = assert!(
|
||||
& !HANDLE_WORD
|
||||
== 0
|
||||
);
|
||||
const _: () = assert!(TextureWord::BORDER_TEXELS & !HANDLE_WORD == 0);
|
||||
|
||||
/// The module-scope objects of [`WordsPlan`].
|
||||
#[derive(Clone, Debug, Default)]
|
||||
|
||||
@@ -48,16 +48,6 @@
|
||||
//! read selects its out-of-bounds alpha by. An element is below [`TABLE_CAPACITY`], so the bit is
|
||||
//! never an element's.
|
||||
//!
|
||||
//! **Border texels**. A texture entry's flags also hold Metal's border texels of the resident
|
||||
//! texture, its pixel format's and swizzle's ([`FLAG_BORDER_TEXELS`]), which a Metal 4.1 read
|
||||
//! through a sampler hands back at an index outside the level on a border axis. A module with such
|
||||
//! a read of a heap texture calls the search's indexed form ([`Lookup::Indexed`]): the handle is
|
||||
//! the element with the found entry's index in its top 16 bits ([`HANDLE_ENTRY`]), by which a
|
||||
//! read would load the entry's border texels, and each use that reads another of the entry's
|
||||
//! flags would load them there too: the handle has no room for the border texels beside the flags
|
||||
//! the flagged form carries. The identity domains refuse that form before emission. An entry's
|
||||
//! index is below [`TABLE_CAPACITY`] as an element is, so the two never overlap.
|
||||
//!
|
||||
//! **Heap samplers** (the sampler half). A sampler handle loaded from an argument buffer is the
|
||||
//! guest's resource id of an `MTLSamplerState`, searched in the stage's **sampler table**
|
||||
//! (`Synthetic(SamplerTable)`), the handle table's layout over the argument buffers' samplers: a
|
||||
@@ -394,9 +384,8 @@ pub const ENTRY_ID_HI: u32 = 1;
|
||||
pub const ENTRY_ELEMENT: u32 = 2;
|
||||
/// Word of an entry holding the flags: for a sampler, its
|
||||
/// [`SamplerWord`](crate::metal::sampler::SamplerWord); for a texture,
|
||||
/// [`FLAG_OUT_OF_BOUNDS_ALPHA_ONE`], [`FLAG_RED_BLUE`], its border texels in
|
||||
/// [`FLAG_BORDER_TEXELS`], the index of its texel class in [`FLAG_TEXEL_CLASS`], and
|
||||
/// [`FLAG_STORAGE_UNREADABLE`], every other bit 0.
|
||||
/// [`FLAG_OUT_OF_BOUNDS_ALPHA_ONE`], [`FLAG_RED_BLUE`], the index of its texel class in
|
||||
/// [`FLAG_TEXEL_CLASS`], and [`FLAG_STORAGE_UNREADABLE`], every other bit 0.
|
||||
pub const ENTRY_FLAGS: u32 = 3;
|
||||
/// The flag of a texture entry whose pixel format has no alpha
|
||||
/// (`metal::format::out_of_bounds_alpha_one`): Metal's out-of-bounds read of such a texture
|
||||
@@ -440,38 +429,20 @@ pub const HANDLE_ALPHA_ONE: u32 = 1 << 31;
|
||||
/// The bit of a heap handle that carries its entry's [`FLAG_RED_BLUE`], in a module whose search
|
||||
/// carries the texel class ([`Lookup::Flagged`]'s `class`).
|
||||
pub const HANDLE_RED_BLUE: u32 = 1 << 30;
|
||||
/// The field of a texture entry's flags holding Metal's border texels of its texture
|
||||
/// (`metal::sampler::border_texels` of its pixel format and swizzle, the layout of a slot's
|
||||
/// `BorderTexels` specialization moved up by the field's first bit): bit `3c + b` of the field is
|
||||
/// set where channel `c` (red 0 to alpha 3) of the border texel for border color `b`
|
||||
/// (`MTLSamplerBorderColor`'s value) reads 1. A Metal 4.1 read through a sampler of an argument
|
||||
/// buffer's texture hands it back at an index outside the level on a border axis, from the entry
|
||||
/// its handle names ([`Lookup::Indexed`]).
|
||||
pub const FLAG_BORDER_TEXELS: u32 = 0xfff << 3;
|
||||
/// The field of a heap handle holding the index of the handle-table entry its search found, in a
|
||||
/// module whose search yields it beside the element ([`Lookup::Indexed`]).
|
||||
pub const HANDLE_ENTRY: u32 = 0xffff << 16;
|
||||
// Every element is below the table's capacity, so no carried bit is an element's, and the
|
||||
// carried fields do not overlap; an entry's index is below the capacity too, so it fits its field,
|
||||
// above every element's bits.
|
||||
// carried fields do not overlap.
|
||||
const _: () = assert!(TABLE_CAPACITY <= 1 << HANDLE_TEXEL_CLASS.trailing_zeros());
|
||||
const _: () = assert!(HANDLE_TEXEL_CLASS & HANDLE_ALPHA_ONE == 0);
|
||||
const _: () = assert!((HANDLE_TEXEL_CLASS | HANDLE_ALPHA_ONE) & HANDLE_RED_BLUE == 0);
|
||||
const _: () = assert!(FLAG_TEXEL_CLASS & FLAG_OUT_OF_BOUNDS_ALPHA_ONE == 0);
|
||||
const _: () = assert!((FLAG_TEXEL_CLASS | FLAG_OUT_OF_BOUNDS_ALPHA_ONE) & FLAG_RED_BLUE == 0);
|
||||
const _: () = assert!(
|
||||
(FLAG_TEXEL_CLASS | FLAG_OUT_OF_BOUNDS_ALPHA_ONE | FLAG_RED_BLUE) & FLAG_BORDER_TEXELS == 0
|
||||
);
|
||||
const _: () = assert!(TABLE_CAPACITY <= 1 << HANDLE_ENTRY.trailing_zeros());
|
||||
const _: () = assert!(
|
||||
(HANDLE_TEXEL_CLASS | HANDLE_ALPHA_ONE | HANDLE_RED_BLUE) & HANDLE_STORAGE_UNREADABLE == 0
|
||||
);
|
||||
const _: () = assert!(
|
||||
(FLAG_TEXEL_CLASS | FLAG_OUT_OF_BOUNDS_ALPHA_ONE | FLAG_RED_BLUE | FLAG_BORDER_TEXELS)
|
||||
& FLAG_STORAGE_UNREADABLE
|
||||
(FLAG_TEXEL_CLASS | FLAG_OUT_OF_BOUNDS_ALPHA_ONE | FLAG_RED_BLUE) & FLAG_STORAGE_UNREADABLE
|
||||
== 0
|
||||
);
|
||||
const _: () = assert!(TABLE_CAPACITY <= 1 << HANDLE_ENTRY.count_ones());
|
||||
|
||||
/// Unrolled steps of the handle-table search.
|
||||
pub const SEARCH_STEPS: u32 = 16;
|
||||
@@ -1376,19 +1347,6 @@ pub enum Lookup {
|
||||
red_blue: bool,
|
||||
unreadable: bool,
|
||||
},
|
||||
/// The entry's element with the entry's index beside it, in [`HANDLE_ENTRY`] (0 for a miss,
|
||||
/// the null entry's): the handle of a module whose read through a sampler of a heap texture
|
||||
/// may hand back its border texels, which its entry holds ([`FLAG_BORDER_TEXELS`]). The handle
|
||||
/// has no room for them beside the flags `Flagged` carries, so it carries none: a use reads the
|
||||
/// ones its module reads (`alpha`, `class`, `red_blue` and `unreadable` as `Flagged`'s) from
|
||||
/// the entry, in the handle `Flagged` would have yielded. Every heap access masks the index off
|
||||
/// ([`Lookup::element_mask`]).
|
||||
Indexed {
|
||||
alpha: bool,
|
||||
class: bool,
|
||||
red_blue: bool,
|
||||
unreadable: bool,
|
||||
},
|
||||
/// The index of the entry found, 0 (the null entry) for a miss: the handle of an argument
|
||||
/// buffer's sampler, whose uses read the entry's element and word ([`entry_field`]).
|
||||
Entry,
|
||||
@@ -1396,21 +1354,14 @@ pub enum Lookup {
|
||||
|
||||
impl Lookup {
|
||||
/// The entry flags this form's uses read in the handle, each with the left shift that moves it
|
||||
/// there: the ones `Flagged`'s search carries into it, and those `Indexed`'s uses read from
|
||||
/// the entry.
|
||||
/// there: the ones `Flagged`'s search carries into it.
|
||||
fn carried(self) -> Vec<(u32, u32)> {
|
||||
let (Lookup::Flagged {
|
||||
let Lookup::Flagged {
|
||||
alpha,
|
||||
class,
|
||||
red_blue,
|
||||
unreadable,
|
||||
}
|
||||
| Lookup::Indexed {
|
||||
alpha,
|
||||
class,
|
||||
red_blue,
|
||||
unreadable,
|
||||
}) = self
|
||||
} = self
|
||||
else {
|
||||
return Vec::new();
|
||||
};
|
||||
@@ -1433,13 +1384,9 @@ impl Lookup {
|
||||
}
|
||||
|
||||
/// The bits of a handle this form yields that are its element, where it carries anything
|
||||
/// beside it: every bit but the carried flags (`Flagged`), or but the entry's index
|
||||
/// (`Indexed`). An element is below [`TABLE_CAPACITY`], so no carried bit is ever an
|
||||
/// element's.
|
||||
/// beside it: every bit but the carried flags (`Flagged`). An element is below
|
||||
/// [`TABLE_CAPACITY`], so no carried bit is ever an element's.
|
||||
pub fn element_mask(self) -> Option<u32> {
|
||||
if let Lookup::Indexed { .. } = self {
|
||||
return Some(!HANDLE_ENTRY);
|
||||
}
|
||||
let carried = self
|
||||
.carried()
|
||||
.into_iter()
|
||||
@@ -1467,10 +1414,6 @@ fn carry(
|
||||
Ok(word)
|
||||
}
|
||||
|
||||
/// An upper estimate of the words of an indexed handle's flags read: the entry's index, its
|
||||
/// flags word ([`ENTRY_FIELD_WORDS`]), and the fields' moves with their constants.
|
||||
pub const INDEXED_FLAGS_WORDS: u32 = ENTRY_FIELD_WORDS + 64;
|
||||
|
||||
/// A field of a handle-table entry that a use reads by the entry's index.
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
||||
pub enum EntryField {
|
||||
@@ -1531,9 +1474,8 @@ pub fn last_entry(fb: &mut FunctionBuilder<'_>, t: Table) -> BResult<SValue> {
|
||||
/// [`NEUTRAL_ELEMENT`]. Entry 0 is the null entry (id 0), so the search always finds an entry,
|
||||
/// and every entry it reads is below the table's length (`OpArrayLength`). An entry array
|
||||
/// compares each id as one `u64`; a word view compares its two words. [`Lookup::Flagged`] also
|
||||
/// moves the found entry's flags it carries into their handle bits, [`Lookup::Indexed`] the found
|
||||
/// entry's index into [`HANDLE_ENTRY`] (a miss is [`NEUTRAL_ELEMENT`] without either), and
|
||||
/// [`Lookup::Entry`] yields the found entry's index in place of its element, 0 for a miss.
|
||||
/// moves the found entry's flags it carries into their handle bits (a miss is
|
||||
/// [`NEUTRAL_ELEMENT`] without them), and [`Lookup::Entry`] yields the found entry's index in place of its element, 0 for a miss.
|
||||
pub fn lookup(
|
||||
fb: &mut FunctionBuilder<'_>,
|
||||
t: Table,
|
||||
@@ -1603,15 +1545,9 @@ pub fn lookup(
|
||||
return fb.select(hit, base, zero);
|
||||
}
|
||||
let element = entry_field(fb, t, base, EntryField::Element)?;
|
||||
let handle = match form {
|
||||
// The entry's index beside the element.
|
||||
Lookup::Indexed { .. } => {
|
||||
let shift = k32(fb, HANDLE_ENTRY.trailing_zeros())?;
|
||||
let entry = fb.binary(BinOp::ShiftLeftLogical, base, shift)?;
|
||||
fb.binary(BinOp::BitwiseOr, element, entry)?
|
||||
}
|
||||
_ if form.carried().is_empty() => element,
|
||||
_ => {
|
||||
let handle = match form.carried().is_empty() {
|
||||
true => element,
|
||||
false => {
|
||||
let flags = entry_field(fb, t, base, EntryField::Flags)?;
|
||||
carry(fb, element, flags, form)?
|
||||
}
|
||||
@@ -1625,14 +1561,10 @@ pub fn lookup(
|
||||
/// a word view, two word reads (about 20 words each) and a five-instruction compare; then the
|
||||
/// entry's id and element, and the function's own instructions and types. The flagged form also
|
||||
/// reads the entry's flags (a word read) and moves each carried field (three instructions and two
|
||||
/// constants); the indexed form moves the entry's index (two instructions and a constant); the
|
||||
/// entry form reads no element.
|
||||
/// constants); the entry form reads no element.
|
||||
pub fn lookup_routine_words(int64: bool, form: Lookup) -> u32 {
|
||||
let step = if int64 { 48 } else { 96 };
|
||||
let carried = match form {
|
||||
Lookup::Indexed { .. } => 16,
|
||||
_ => 48 * form.carried().len() as u32,
|
||||
};
|
||||
let carried = 48 * form.carried().len() as u32;
|
||||
SEARCH_STEPS * step + 160 + carried
|
||||
}
|
||||
|
||||
@@ -1882,10 +1814,8 @@ mod tests {
|
||||
/// word view. [`Lookup::Flagged`] also carries a found entry's [`FLAG_OUT_OF_BOUNDS_ALPHA_ONE`]
|
||||
/// in [`HANDLE_ALPHA_ONE`] where it carries the alpha, its texel class where it carries that,
|
||||
/// and its [`FLAG_RED_BLUE`] in [`HANDLE_RED_BLUE`] where it carries that, carrying no other
|
||||
/// bit of the entry;
|
||||
/// [`Lookup::Indexed`] carries the found entry's index in [`HANDLE_ENTRY`] beside the element,
|
||||
/// whatever flags its uses read; and [`Lookup::Entry`] yields the index of the last entry of
|
||||
/// the key's id, 0 for a miss.
|
||||
/// bit of the entry; and [`Lookup::Entry`] yields the index of the last entry of the key's id,
|
||||
/// 0 for a miss.
|
||||
#[test]
|
||||
fn the_emitted_search_matches_the_host_model() {
|
||||
for int64 in [true, false] {
|
||||
@@ -1904,12 +1834,6 @@ mod tests {
|
||||
flagged(true, true, false, false),
|
||||
flagged(true, true, true, false),
|
||||
flagged(true, true, true, true),
|
||||
Lookup::Indexed {
|
||||
alpha: true,
|
||||
class: true,
|
||||
red_blue: false,
|
||||
unreadable: true,
|
||||
},
|
||||
Lookup::Entry,
|
||||
] {
|
||||
emitted_search_matches_the_host_model(int64, form);
|
||||
@@ -1953,21 +1877,6 @@ mod tests {
|
||||
),
|
||||
"every carried field is masked off, and the element's 16 bits stay"
|
||||
);
|
||||
for (alpha, class, red_blue, unreadable) in
|
||||
[(false, false, false, false), (true, true, true, true)]
|
||||
{
|
||||
let indexed = Lookup::Indexed {
|
||||
alpha,
|
||||
class,
|
||||
red_blue,
|
||||
unreadable,
|
||||
};
|
||||
assert_eq!(
|
||||
indexed.element_mask(),
|
||||
Some(0xffff),
|
||||
"an indexed handle's entry is masked off, whatever flags its uses read"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// Every texel class index fits [`FLAG_TEXEL_CLASS`], so no index reaches
|
||||
@@ -1994,7 +1903,6 @@ mod tests {
|
||||
}
|
||||
(element % 64)
|
||||
| ((element.wrapping_mul(2_654_435_761) >> 7) & FLAG_TEXEL_CLASS)
|
||||
| ((element.wrapping_mul(40_503) << 3) & FLAG_BORDER_TEXELS)
|
||||
| ((element & 16) << 11)
|
||||
| ((element & 8) << 25)
|
||||
}
|
||||
@@ -2086,10 +1994,6 @@ mod tests {
|
||||
false => 0,
|
||||
}
|
||||
}
|
||||
Lookup::Indexed { .. } => match t.iter().rposition(|(k, _)| k == id) {
|
||||
Some(i) => e | (i as u32) << HANDLE_ENTRY.trailing_zeros(),
|
||||
None => NEUTRAL_ELEMENT,
|
||||
},
|
||||
Lookup::Entry => {
|
||||
t.iter().rposition(|(k, _)| k == id).map_or(0, |i| i as u32)
|
||||
}
|
||||
|
||||
@@ -57,6 +57,12 @@
|
||||
//! slot's resource ID's word, with no `BorderTexels` specialization or fact. It passes L3 and,
|
||||
//! on the CPU interpreter, reads Metal's border texel of `R32Float`, `RGBA8Unorm`, `A8Unorm`
|
||||
//! and a swizzled `RGBA8Unorm` under each border color, and the texel inside the texture.
|
||||
//! - An argument buffer's texture read through a sampler that clamps to its border color
|
||||
//! (`engine/kernel_read_through`'s `rt_heap_zero`, `rt_heap_ow` and `rt_heap_arg`: a constexpr
|
||||
//! `clamp_to_zero` sampler, a constexpr opaque-white border and the runtime sampler) takes the
|
||||
//! border texels from bits 0-11 of the word of the resource ID its member holds, which its
|
||||
//! handle carries, with no handle table and no `BorderTexels` fact. Each passes L3 and, on the
|
||||
//! CPU interpreter, reads Metal's border texels of the same formats for its colors.
|
||||
//! - The same kernel with its textures in an argument buffer (`tex` with `ab`) reads their
|
||||
//! resource IDs from the buffer's members, at its pushed address, and answers the same at the
|
||||
//! same elements, with no handle table and no descriptor; IDs whose indices are 65,536 past
|
||||
@@ -2608,6 +2614,188 @@ fn a_read_through_a_sampler_takes_its_border_texels_from_the_word() {
|
||||
}
|
||||
}
|
||||
|
||||
/// An argument buffer's texture read through a sampler that clamps every axis to its border color
|
||||
/// (`engine/kernel_read_through`'s `rt_heap_zero` through a constexpr `clamp_to_zero` sampler,
|
||||
/// `rt_heap_ow` through a constexpr `clamp_to_border` of opaque white, and `rt_heap_arg` through
|
||||
/// the runtime sampler `[[sampler(0)]]`; each a `texture2d<float>` the argument buffer at buffer 2
|
||||
/// holds) under the identity domains takes the texel an index outside the texture reads from bits
|
||||
/// 0-11 of the word of the resource ID the argument buffer's member holds, as a slot's read takes
|
||||
/// it from its own ([`a_read_through_a_sampler_takes_its_border_texels_from_the_word`]): no
|
||||
/// handle table, no `BorderTexels` fact, no specialization constant but the dispatch's, and the
|
||||
/// plan reading its border texels from its handle (`AccessPlan::heap_border`). On the CPU
|
||||
/// interpreter the border texels of `R32Float`, `RGBA8Unorm`, `A8Unorm` and an `RGBA8Unorm`
|
||||
/// swizzled `(a, b, 0, r)` match Metal's ([`border_texel`](crate::metal::sampler::border_texel))
|
||||
/// for each entry's border colors, and a read inside the texture reads its texel.
|
||||
#[test]
|
||||
fn an_argument_buffer_textures_read_through_a_sampler_takes_its_border_texels_from_its_word() {
|
||||
use crate::metal::sampler::{border_texel, SamplerWord, BORDER_COLORS};
|
||||
use crate::metal::{SamplerAddressMode, SamplerBorderColor, TextureSwizzle};
|
||||
let Some(bc) = assemble("kernel_read_through") else {
|
||||
return;
|
||||
};
|
||||
// Thread `i` reads at `P[i]` (no offset): inside at (1, 0) and (1, 1), and past the right,
|
||||
// left and top edges of the 2 × 2 texture.
|
||||
const P: [[i32; 4]; 5] = [
|
||||
[1, 0, 0, 0],
|
||||
[2, 1, 0, 0],
|
||||
[-1, 1, 0, 0],
|
||||
[1, -1, 0, 0],
|
||||
[1, 1, 0, 0],
|
||||
];
|
||||
const INSIDE: [Option<(u32, u32)>; 5] = [Some((1, 0)), None, None, None, Some((1, 1))];
|
||||
const L: [u32; 3] = [5, 1, 1];
|
||||
// The texture at index 3 of the sampled array, the runtime sampler at index 1 of its arrays.
|
||||
const TEX: u32 = 3;
|
||||
const SAMPLER: u32 = 1;
|
||||
let swizzled = TextureSwizzleChannels::new(
|
||||
TextureSwizzle::Alpha,
|
||||
TextureSwizzle::Blue,
|
||||
TextureSwizzle::Zero,
|
||||
TextureSwizzle::Red,
|
||||
);
|
||||
let formats = [
|
||||
(PixelFormat::R32Float, TextureSwizzleChannels::DEFAULT),
|
||||
(PixelFormat::RGBA8Unorm, TextureSwizzleChannels::DEFAULT),
|
||||
(PixelFormat::A8Unorm, TextureSwizzleChannels::DEFAULT),
|
||||
(PixelFormat::RGBA8Unorm, swizzled),
|
||||
];
|
||||
use SamplerBorderColor::{OpaqueBlack, OpaqueWhite, TransparentBlack};
|
||||
// Each entry and the border colors it reads: its constexpr sampler's, or each the runtime
|
||||
// sampler's word names. `BORDER_COLORS` is in `MTLSamplerBorderColor`'s order.
|
||||
let entries: [(&str, &[SamplerBorderColor]); 3] = [
|
||||
("rt_heap_zero", &[TransparentBlack]),
|
||||
("rt_heap_ow", &[OpaqueWhite]),
|
||||
("rt_heap_arg", &[TransparentBlack, OpaqueBlack, OpaqueWhite]),
|
||||
];
|
||||
let f = |v: f32| v.to_bits();
|
||||
let held = |x: u32, y: u32| [f(x as f32 + 0.25), f(y as f32 + 0.5), f(0.125), f(0.75)];
|
||||
let filler = |_: u32, _: u32| [0xdead_beef; 4];
|
||||
let mut profiles: Vec<(String, DeviceProfile)> = PROFILES
|
||||
.iter()
|
||||
.map(|stem| {
|
||||
let p = profile(stem).unwrap_or_else(|e| panic!("{e}"));
|
||||
(stem.to_string(), p)
|
||||
})
|
||||
.collect();
|
||||
profiles.push((
|
||||
"moltenvk-m3 without robustImageAccess2".to_string(),
|
||||
identity_without("moltenvk-m3", &[VkFeature::RobustImageAccess2]),
|
||||
));
|
||||
for (stem, p) in &profiles {
|
||||
for (entry, colors) in entries {
|
||||
let what = format!("{stem}: {entry}");
|
||||
let (a, plan, module) =
|
||||
compile_kept(&bc, entry, p).unwrap_or_else(|e| panic!("{what}: {e}"));
|
||||
link_and_validate(&a, p).unwrap_or_else(|e| panic!("{what}: L3: {e}"));
|
||||
assert!(
|
||||
(a.interface.spec.iter()).all(|c| dispatch_key(c.key)),
|
||||
"{what}: {:?}",
|
||||
a.interface.spec
|
||||
);
|
||||
assert!(
|
||||
!(plan.facts.iter()).any(|f| matches!(f, RuntimeFact::BorderTexels { .. })),
|
||||
"{what}: {:?}",
|
||||
plan.facts
|
||||
);
|
||||
assert!(plan.families.access.heap_border, "{what}");
|
||||
let linked =
|
||||
link(&[&a], &LinkInputs::standalone(), p).unwrap_or_else(|e| panic!("{e}"));
|
||||
let sampled: Vec<ResourceSlot> = (linked.table.bindings.iter())
|
||||
.filter(|(slot, _)| matches!(slot.kind, ResourceKind::Heap(HandleClass::Image(_))))
|
||||
.map(|(slot, _)| *slot)
|
||||
.collect();
|
||||
let [sampled] = sampled[..] else {
|
||||
panic!("{what}: {sampled:?}");
|
||||
};
|
||||
for (pf, swizzle) in formats {
|
||||
let word = TextureWord::of(pf, swizzle).expect("a word").0;
|
||||
let present = crate::metal::format::channels(pf).expect("channels");
|
||||
for &color in colors {
|
||||
let rgba = BORDER_COLORS[color.as_raw() as usize];
|
||||
let mut desc = crate::bind::SamplerDescriptor::new();
|
||||
desc.s_address_mode = SamplerAddressMode::ClampToBorderColor;
|
||||
desc.t_address_mode = SamplerAddressMode::ClampToBorderColor;
|
||||
desc.r_address_mode = SamplerAddressMode::ClampToBorderColor;
|
||||
desc.border_color = color;
|
||||
let sampler = SamplerWord::of(&desc).0;
|
||||
let end = plan.push.push_range.map_or(0, |(_, end)| end as usize);
|
||||
let mut push = vec![0u8; end];
|
||||
for field in &plan.push.fields {
|
||||
let PushLoc::Push { offset } = field.loc else {
|
||||
panic!("{what}: {field:?} spilled");
|
||||
};
|
||||
let o = offset as usize;
|
||||
let bytes = match field.field {
|
||||
PushField::SlotGuestBase(s) => match (s.class, s.index) {
|
||||
(SlotClass::Buffer, 0) => slot_word(POSITIONS),
|
||||
(SlotClass::Buffer, 1) => slot_word(OUT),
|
||||
(SlotClass::Buffer, 2) => slot_word(AB),
|
||||
(SlotClass::Sampler, 0) => resource_id(SAMPLER, sampler),
|
||||
_ => panic!("{what}: unexpected slot {s:?}"),
|
||||
},
|
||||
PushField::DispatchRegion => {
|
||||
let region = region_bytes([0; 3], L, L).expect("packs");
|
||||
push[o..o + 32].copy_from_slice(®ion);
|
||||
continue;
|
||||
}
|
||||
PushField::SlotBounds(s) => {
|
||||
let bytes = match (s.class, s.index) {
|
||||
(SlotClass::Buffer, 0 | 1) => 16 * P.len(),
|
||||
(SlotClass::Buffer, 2) => 8,
|
||||
_ => panic!("{what}: unexpected bounds {s:?}"),
|
||||
};
|
||||
push[o..o + 8].copy_from_slice(&bounds_word(bytes, 0));
|
||||
continue;
|
||||
}
|
||||
PushField::ZeroAddress => ZERO_UNMAPPED,
|
||||
_ => panic!("{what}: unexpected push field {field:?}"),
|
||||
};
|
||||
push[o..o + 8].copy_from_slice(&bytes.to_le_bytes());
|
||||
}
|
||||
let mut images: Vec<Image> = (0..TEX)
|
||||
.map(|e| texture(sampled, e, [1, 1], filler, None))
|
||||
.collect();
|
||||
images.push(texture(sampled, TEX, [2, 2], held, None));
|
||||
let positions = P.iter().flatten().flat_map(|v| v.to_le_bytes()).collect();
|
||||
let res = Resources {
|
||||
buffers: vec![
|
||||
Buffer {
|
||||
slot: None,
|
||||
address: Some(POSITIONS),
|
||||
bytes: positions,
|
||||
},
|
||||
Buffer {
|
||||
slot: None,
|
||||
address: Some(OUT),
|
||||
bytes: vec![0; 16 * P.len()],
|
||||
},
|
||||
Buffer {
|
||||
slot: None,
|
||||
address: Some(AB),
|
||||
bytes: resource_id(TEX, word).to_le_bytes().to_vec(),
|
||||
},
|
||||
],
|
||||
push,
|
||||
spec: local_size3(L),
|
||||
};
|
||||
let (got, _) = run_with_images(&module, &Config::default(), res, images)
|
||||
.unwrap_or_else(|e| panic!("{what}: {e}"));
|
||||
let border = border_texel(pf, present, swizzle, rgba)
|
||||
.map(|one| f(f32::from(u8::from(one))));
|
||||
let want: Vec<u8> = (INSIDE.iter())
|
||||
.flat_map(|at| match at {
|
||||
Some((x, y)) => held(*x, *y),
|
||||
None => border,
|
||||
})
|
||||
.flat_map(|lane| lane.to_le_bytes())
|
||||
.collect();
|
||||
assert_eq!(got.buffers[1], want, "{what}: {pf:?} {swizzle:?} {color:?}");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// The read buffers of a kernel of [`many_of`]: with its output, 21 slot addresses of 8 bytes.
|
||||
const READS: u32 = 20;
|
||||
|
||||
|
||||
@@ -700,11 +700,10 @@ fn a_clamp_to_edge_read_clamps_its_coordinate_into_the_texture() {
|
||||
}
|
||||
|
||||
/// Every read through a sampler translates, links and passes `spirv-val` where it translates:
|
||||
/// the constexpr, runtime and argument-buffer samplers' (`rt_table`). An argument buffer's texture
|
||||
/// read through `clamp_to_zero` (`rt_heap_zero`), `clamp_to_border` with an opaque white border
|
||||
/// (`rt_heap_ow`) and a runtime sampler (`rt_heap_arg`) reads its border texels from its
|
||||
/// handle-table entry, beyond its element: the identity domains refuse it
|
||||
/// (`IdentityCause::HeapResource`), a known gap of the runtime's.
|
||||
/// the constexpr, runtime and argument-buffer samplers' (`rt_table`), and an argument buffer's
|
||||
/// texture's through `clamp_to_zero` (`rt_heap_zero`), `clamp_to_border` with an opaque white
|
||||
/// border (`rt_heap_ow`) and a runtime sampler (`rt_heap_arg`), whose border texels its resource
|
||||
/// ID's word holds.
|
||||
#[test]
|
||||
fn every_read_through_a_sampler_validates_or_is_refused_typed() {
|
||||
let Some(bc) = read_through() else {
|
||||
@@ -744,9 +743,9 @@ fn every_read_through_a_sampler_validates_or_is_refused_typed() {
|
||||
for entry in entries {
|
||||
match compile(&bc, entry, &p) {
|
||||
Ok(a) => {
|
||||
assert!(!entry.starts_with("rt_heap"), "{stem}: {entry}");
|
||||
link_and_validate(&a, &p).unwrap_or_else(|e| panic!("{stem}: {entry}: {e}"));
|
||||
validated += 1;
|
||||
heap += usize::from(entry.starts_with("rt_heap"));
|
||||
}
|
||||
Err(Error::NeedsInput(_)) => {}
|
||||
// A device without the descriptor-indexing features a handle heap needs refuses
|
||||
@@ -755,22 +754,13 @@ fn every_read_through_a_sampler_validates_or_is_refused_typed() {
|
||||
if entry.starts_with("rt_heap")
|
||||
&& u.feature == Feature::ArgumentBufferTextures
|
||||
&& u.needs != not_implemented.needs => {}
|
||||
Err(Error::Unsupported(u))
|
||||
if entry.starts_with("rt_heap")
|
||||
&& u.cause
|
||||
== Some(crate::error::Cause::Identity(
|
||||
crate::error::IdentityCause::HeapResource,
|
||||
)) =>
|
||||
{
|
||||
heap += 1;
|
||||
}
|
||||
Err(e) if formatless_read_refused(&e, &p) => {}
|
||||
Err(e) => panic!("{stem}: {entry}: {e}"),
|
||||
}
|
||||
}
|
||||
}
|
||||
assert!(validated > 0);
|
||||
assert!(heap > 0, "no argument buffer's texture read was refused");
|
||||
assert!(heap > 0, "no argument buffer's texture read validated");
|
||||
}
|
||||
|
||||
/// Metal's border texels per format (`metal::sampler::border_texels`), as the M3 Max read them
|
||||
|
||||
@@ -1765,9 +1765,9 @@ engine/kernel_read_through.ll rt_arg ok ok ok ok ok ok ok ok ok ok ok ok ok ok o
|
||||
engine/kernel_read_through.ll rt_arg_buffer ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok
|
||||
engine/kernel_read_through.ll rt_arg_volume ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok
|
||||
engine/kernel_read_through.ll rt_table ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok
|
||||
engine/kernel_read_through.ll rt_heap_zero Unsupported{IdentityDomains; NotImplemented} Unsupported{IdentityDomains; NotImplemented} Unsupported{IdentityDomains; NotImplemented} Unsupported{IdentityDomains; NotImplemented} Unsupported{IdentityDomains; NotImplemented} Unsupported{IdentityDomains; NotImplemented} Unsupported{IdentityDomains; NotImplemented} Unsupported{IdentityDomains; NotImplemented} Unsupported{IdentityDomains; NotImplemented} Unsupported{IdentityDomains; NotImplemented} Unsupported{IdentityDomains; NotImplemented} Unsupported{IdentityDomains; NotImplemented} Unsupported{IdentityDomains; NotImplemented} Unsupported{IdentityDomains; NotImplemented} Unsupported{IdentityDomains; NotImplemented}
|
||||
engine/kernel_read_through.ll rt_heap_ow Unsupported{IdentityDomains; NotImplemented} Unsupported{IdentityDomains; NotImplemented} Unsupported{IdentityDomains; NotImplemented} Unsupported{IdentityDomains; NotImplemented} Unsupported{IdentityDomains; NotImplemented} Unsupported{IdentityDomains; NotImplemented} Unsupported{IdentityDomains; NotImplemented} Unsupported{IdentityDomains; NotImplemented} Unsupported{IdentityDomains; NotImplemented} Unsupported{IdentityDomains; NotImplemented} Unsupported{IdentityDomains; NotImplemented} Unsupported{IdentityDomains; NotImplemented} Unsupported{IdentityDomains; NotImplemented} Unsupported{IdentityDomains; NotImplemented} Unsupported{IdentityDomains; NotImplemented}
|
||||
engine/kernel_read_through.ll rt_heap_arg Unsupported{IdentityDomains; NotImplemented} Unsupported{IdentityDomains; NotImplemented} Unsupported{IdentityDomains; NotImplemented} Unsupported{IdentityDomains; NotImplemented} Unsupported{IdentityDomains; NotImplemented} Unsupported{IdentityDomains; NotImplemented} Unsupported{IdentityDomains; NotImplemented} Unsupported{IdentityDomains; NotImplemented} Unsupported{IdentityDomains; NotImplemented} Unsupported{IdentityDomains; NotImplemented} Unsupported{IdentityDomains; NotImplemented} Unsupported{IdentityDomains; NotImplemented} Unsupported{IdentityDomains; NotImplemented} Unsupported{IdentityDomains; NotImplemented} Unsupported{IdentityDomains; NotImplemented}
|
||||
engine/kernel_read_through.ll rt_heap_zero ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok
|
||||
engine/kernel_read_through.ll rt_heap_ow ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok
|
||||
engine/kernel_read_through.ll rt_heap_arg ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok
|
||||
engine/kernel_read_through_constant.air.ll read_through_constant ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok
|
||||
engine/kernel_read_through_constant.ll read_through_constant ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok
|
||||
engine/kernel_signed_remainders.air.ll signed_remainders ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok
|
||||
|
||||
|
Can't render this file because it is too large.
|
+3
-2
@@ -272,8 +272,9 @@ the runtime's, the command line's, the compile worker's and every validation too
|
||||
be reached and under which, false, each access is the element's own view's:
|
||||
RESOURCE-ID.md, the texture buffer word), and
|
||||
samples its texture slots
|
||||
through its runtime sampler slots and its constexpr samplers and reads them through those (MSL
|
||||
4.1's `read(sampler, coord)`, its border texel from bits 0-11 of the ID's word). Any other
|
||||
through its runtime sampler slots and its constexpr samplers and reads them, and an argument
|
||||
buffer's textures, through those (MSL 4.1's `read(sampler, coord)`, its border texel from bits
|
||||
0-11 of the ID's word, a slot's pushed and a member's in the argument buffer). Any other
|
||||
function is refused as `Unsupported{IdentityDomains}`, whose cause (`Cause::Identity`) names
|
||||
the family of the first such form the function holds and whose symbol names the form: one that samples through an argument buffer's sampler or samples an
|
||||
argument buffer's texture, emulates a sampler's anisotropy, samples a 1D
|
||||
|
||||
@@ -43,7 +43,7 @@ Its limits, measured rather than asserted:
|
||||
| committed recordings | 1352 |
|
||||
| distinct SDK items the Metal leg reaches, of any status | 812 |
|
||||
| of those, reached only where this cannot name the family | 5 |
|
||||
| ledger rows (a case whose gap is recorded) | 8192 |
|
||||
| ledger rows (a case whose gap is recorded) | 8282 |
|
||||
| declared crossings of the option space (pairs put to Metal at once) | 26 |
|
||||
| declared crossings that are no pair of it (a boolean or numeric field, or one type in two slots) | 30 |
|
||||
|
||||
@@ -4182,12 +4182,102 @@ A case whose difference from Metal is recorded rather than compared away. The le
|
||||
| `pixel-samplers-subnormal-zero` | The device's own answer (rule 1): `arg`, `const`, `norm` and `slot` differ from Metal's. Ours split as Metal's do: one digest across `arg` and `slot`; `const` i… |
|
||||
| `pixel-samplers-subnormal-zero` | The device's own answer (rule 1): `arg`, `const` and `slot` differ from Metal's (`norm` reads Metal's answer). Ours split as Metal's do: one digest across `arg`… |
|
||||
| `pixel-samplers-subnormal-zero` | The device's own answer (rule 1): `arg`, `const`, `norm` and `slot` differ from Metal's. Ours split as Metal's do: one digest across `arg` and `slot`; `const` i… |
|
||||
| `read-through-a8` | refused: no stream uses it yet (states-only play 11-19, m3-max-56371-56373, 56375, player 44668b439f: 32 streams, every render and compute pipeline state made).… |
|
||||
| `read-through-heap-border` | refused: no stream uses it yet (states-only play 11-19, m3-max-56371-56373, 56375, player 44668b439f: 32 streams, every render and compute pipeline state made).… |
|
||||
| `read-through-heap-sampler` | refused: no stream uses it yet (states-only play 11-19, m3-max-56371-56373, 56375, player 44668b439f: 32 streams, every render and compute pipeline state made).… |
|
||||
| `read-through-r32f` | refused: no stream uses it yet (states-only play 11-19, m3-max-56371-56373, 56375, player 44668b439f: 32 streams, every render and compute pipeline state made).… |
|
||||
| `read-through-rgba8` | refused: no stream uses it yet (states-only play 11-19, m3-max-56371-56373, 56375, player 44668b439f: 32 streams, every render and compute pipeline state made).… |
|
||||
| `read-through-rgba8-swizzled` | refused: no stream uses it yet (states-only play 11-19, m3-max-56371-56373, 56375, player 44668b439f: 32 streams, every render and compute pipeline state made).… |
|
||||
| `read-through-a8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a co… |
|
||||
| `read-through-a8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a co… |
|
||||
| `read-through-a8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a co… |
|
||||
| `read-through-a8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a co… |
|
||||
| `read-through-a8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a co… |
|
||||
| `read-through-a8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a co… |
|
||||
| `read-through-a8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a co… |
|
||||
| `read-through-a8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a co… |
|
||||
| `read-through-a8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a co… |
|
||||
| `read-through-a8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a co… |
|
||||
| `read-through-a8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a co… |
|
||||
| `read-through-a8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a co… |
|
||||
| `read-through-a8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a co… |
|
||||
| `read-through-a8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a co… |
|
||||
| `read-through-a8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a co… |
|
||||
| `read-through-a8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a co… |
|
||||
| `read-through-a8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a co… |
|
||||
| `read-through-a8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a co… |
|
||||
| `read-through-a8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a co… |
|
||||
| `read-through-a8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a co… |
|
||||
| `read-through-a8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a co… |
|
||||
| `read-through-a8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a co… |
|
||||
| `read-through-a8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a co… |
|
||||
| `read-through-a8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a co… |
|
||||
| `read-through-a8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a co… |
|
||||
| `read-through-a8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a co… |
|
||||
| `read-through-a8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a co… |
|
||||
| `read-through-a8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a co… |
|
||||
| `read-through-a8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a co… |
|
||||
| `read-through-a8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a co… |
|
||||
| `read-through-a8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `A8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a co… |
|
||||
| `read-through-rgba8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a… |
|
||||
| `read-through-rgba8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a… |
|
||||
| `read-through-rgba8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a… |
|
||||
| `read-through-rgba8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a… |
|
||||
| `read-through-rgba8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a… |
|
||||
| `read-through-rgba8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a… |
|
||||
| `read-through-rgba8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a… |
|
||||
| `read-through-rgba8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a… |
|
||||
| `read-through-rgba8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a… |
|
||||
| `read-through-rgba8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a… |
|
||||
| `read-through-rgba8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a… |
|
||||
| `read-through-rgba8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a… |
|
||||
| `read-through-rgba8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a… |
|
||||
| `read-through-rgba8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a… |
|
||||
| `read-through-rgba8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a… |
|
||||
| `read-through-rgba8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a… |
|
||||
| `read-through-rgba8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a… |
|
||||
| `read-through-rgba8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a… |
|
||||
| `read-through-rgba8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a… |
|
||||
| `read-through-rgba8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a… |
|
||||
| `read-through-rgba8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a… |
|
||||
| `read-through-rgba8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a… |
|
||||
| `read-through-rgba8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a… |
|
||||
| `read-through-rgba8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a… |
|
||||
| `read-through-rgba8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a… |
|
||||
| `read-through-rgba8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a… |
|
||||
| `read-through-rgba8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a… |
|
||||
| `read-through-rgba8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a… |
|
||||
| `read-through-rgba8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a… |
|
||||
| `read-through-rgba8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a… |
|
||||
| `read-through-rgba8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a… |
|
||||
| `read-through-rgba8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a… |
|
||||
| `read-through-rgba8` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel: the device converts an 8-bit code by the reciprocal product, so a… |
|
||||
| `read-through-rgba8-swizzled` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the … |
|
||||
| `read-through-rgba8-swizzled` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the … |
|
||||
| `read-through-rgba8-swizzled` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the … |
|
||||
| `read-through-rgba8-swizzled` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the … |
|
||||
| `read-through-rgba8-swizzled` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the … |
|
||||
| `read-through-rgba8-swizzled` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the … |
|
||||
| `read-through-rgba8-swizzled` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the … |
|
||||
| `read-through-rgba8-swizzled` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the … |
|
||||
| `read-through-rgba8-swizzled` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the … |
|
||||
| `read-through-rgba8-swizzled` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the … |
|
||||
| `read-through-rgba8-swizzled` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the … |
|
||||
| `read-through-rgba8-swizzled` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the … |
|
||||
| `read-through-rgba8-swizzled` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the … |
|
||||
| `read-through-rgba8-swizzled` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the … |
|
||||
| `read-through-rgba8-swizzled` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the … |
|
||||
| `read-through-rgba8-swizzled` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the … |
|
||||
| `read-through-rgba8-swizzled` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the … |
|
||||
| `read-through-rgba8-swizzled` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the … |
|
||||
| `read-through-rgba8-swizzled` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the … |
|
||||
| `read-through-rgba8-swizzled` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the … |
|
||||
| `read-through-rgba8-swizzled` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the … |
|
||||
| `read-through-rgba8-swizzled` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the … |
|
||||
| `read-through-rgba8-swizzled` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the … |
|
||||
| `read-through-rgba8-swizzled` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the … |
|
||||
| `read-through-rgba8-swizzled` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the … |
|
||||
| `read-through-rgba8-swizzled` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the … |
|
||||
| `read-through-rgba8-swizzled` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the … |
|
||||
| `read-through-rgba8-swizzled` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the … |
|
||||
| `read-through-rgba8-swizzled` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the … |
|
||||
| `read-through-rgba8-swizzled` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the … |
|
||||
| `read-through-rgba8-swizzled` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the … |
|
||||
| `read-through-rgba8-swizzled` | The device's own answer (rule 1): a read through a sampler (MSL 4.1) of an `RGBA8Unorm` texel through a swizzled view: the device converts an 8-bit code by the … |
|
||||
| `read-write-srgb-unorm-views` | The device's own answer (rule 1): the device converts an 8-bit code by the reciprocal product, so a code's value is one `f32` ulp off Metal's. Note `device-texe… |
|
||||
| `read-write-srgb-unorm-views` | The device's own answer (rule 1): the device converts an 8-bit code by the reciprocal product, so a code's value is one `f32` ulp off Metal's. Note `device-texe… |
|
||||
| `read-write-tier-held` | Known gap (rt README, Known gaps of textures): the kernel writes a texture with no storage element on this device through the argument buffer, with no use_resou… |
|
||||
|
||||
+5
-5
@@ -94,11 +94,11 @@ where it checks a `read` itself (a device without `robustImageAccess2`), takes a
|
||||
alpha of 1 from bit 12 of the word. A texture buffer whose word names a format the device holds
|
||||
as words takes its format, its texels per word, whether a texel is two words and its padding from
|
||||
bits 0-10 of its word, and the shader learns that the device holds it as words from its code and,
|
||||
where the device's answer for its format differs with the usage, bit 11. A slot's `read` through a sampler (MSL 4.1) takes the border
|
||||
texel an index outside the level reads on a border axis from bits 0-11 of the word, for the
|
||||
sampler's border color; a texture buffer's whose word has bit 13 set, from the border texels of
|
||||
the format its code names, as an argument buffer's texture buffer held as words does from the code
|
||||
its handle carries. The runtime writes a slot's ID, so its index is an element;
|
||||
where the device's answer for its format differs with the usage, bit 11. A slot's `read` through a sampler (MSL 4.1), and an argument
|
||||
buffer's texture's, takes the border texel an index outside the level reads on a border axis from
|
||||
bits 0-11 of the word, for the sampler's border color; a texture buffer's whose word has bit 13
|
||||
set, from the border texels of the format its code names, as an argument buffer's texture buffer
|
||||
held as words does from the code its handle carries. The runtime writes a slot's ID, so its index is an element;
|
||||
the program writes an argument buffer's, so the shader masks its index to its low 16 bits: a bad
|
||||
ID reads the element at `index & 0xFFFF`, never one outside the arrays.
|
||||
|
||||
|
||||
Reference in new issue
Block a user