conformance: a new texture's fresh read is unchecked on metal2vulkan-rt, where Metal is silent
rt answers a new texture with whatever its memory last held. Metal's two texture-making sentences
say nothing of a new texture's contents: MTLDevice.h gives newTextureWithDescriptor: only
"Allocate a new texture with privately owned storage.", and Apple's page only "Creates a new
texture instance.". The page for newBufferWithLength:options: promises zeros ("Creates a buffer
the method clears with zero values."). An Apple M3 Max on macOS 27.0.1 read zero from new Shared
and Managed textures.
What changes:
- A new justification, Justification::NewRuntimeAccepted(slug): an accepted difference of
docs/API.md that holds on the rt run alone. On the old runtime's run it is
Unjustified::OldRuntime, which faults nothing, so the old runtime's answers still compare.
- The declaration replay::new_texture_contents(site) leaves the site unchecked under the new
docs/API.md entry "The new runtime's new textures read what their memory last held". It carries
the four facts above and the words "silent", never "undefined".
- It is named at the fresh site of every texture row:
- fresh-texture-* and fresh-chain-*, every storage mode;
- fresh-pattern-*;
- texture-round-trip-*;
- each format-footprints round trip.
- It is not named by any buffer row or texture-over-buffer row: Metal promises those zeros, and
they stay exact on rt. The written sites and the statuses stay exact on both runtimes. rt writes
nothing to pass a row.
Why: these rows' fresh sites follow process history on rt. m3-max-52251 (lavapipe, rt) ran plain
development at ed2d2295ce and 391db1e57a and the set at be7ff19f8a:
- 73, 74 and 74 rows divergent, all at fresh sites.
- texture-round-trip-1/12/13/14 are exact each alone in a process and divergent after other cases.
- Which Shared/Managed fresh-texture rows read the released texture's 0xa5 changes from run to
run, even alone.
Tests:
- a_new_texture_s_fresh_read_is_unchecked_on_the_new_runtime_alone: the bytes are unchecked on rt
and are the site's one row on the old runtime. A written-site difference stays a row. An
unknown slug fails the case.
- The fresh rows' allowance test now holds the declaration on every texture and pattern row and
on no buffer row.
This commit is contained in:
1 parent
b9969c9987
commit
2f4c9fc9dc
7 files changed
+174
-16
No files matched your search
@@ -6381,6 +6381,14 @@ each item named states the rule in full.
|
||||
reads the bytes as they are when the GPU runs it, so a write the consumer makes after the call
|
||||
and before then may be seen. Metal leaves it undefined: an Apple M3 and an Intel UHD 630 take
|
||||
the bytes when the GPU reads them, an AMD Radeon Pro 5300M at the commit.
|
||||
- **The new runtime's new textures read what their memory last held** (`metal2vulkan-rt`'s
|
||||
`Device::new_texture`). Metal's two texture-making sentences are silent on a new texture's
|
||||
contents: `MTLDevice.h` gives `newTextureWithDescriptor:` "Allocate a new texture with privately
|
||||
owned storage.", and Apple's page for it "Creates a new texture instance.". The page for
|
||||
`newBufferWithLength:options:` promises zeros: "Creates a buffer the method clears with zero
|
||||
values." An Apple M3 Max on macOS 27.0.1 read zero from new `Shared` and `Managed` textures. The
|
||||
new runtime reads what the texture's memory last held, so what a new texture reads moves with
|
||||
what the process made and released before it.
|
||||
|
||||
**Function constants**
|
||||
|
||||
|
||||
Reference in new issue
Block a user