Say why short_row_kinds.m's multisampled copies died: its forked children, not Metal
short_row_kinds.m ran each case in a child that forked and did not exec, and every copy between a buffer and a multisampled texture there ended in SIGABRT inside Metal's blit. API.md read that as Metal's answer and so as a reason the multisampled short-pitch copy is unmeasured, which contradicted sample_interleave.rs's measured placement of such copies on the same GPU. multisample_buffer_copies.m (M3 Max, macOS 27.0.1, job m3-max-5571) separates the candidates. Forked without an exec, each case aborted: Metal's blit makes its program through its compiler (findOrCreateDriverProgramVariant -> MTLCompiler compileBuiltinRequestInternal -> _os_crash_msg). Spawned, every case returned with its bytes as written: RGBA8Unorm x4 and R8Unorm x2, at RenderTarget|ShaderRead, with PixelFormatView, ShaderRead alone and with PixelFormatView, Private and Shared, with and without options:, with and without a clearing pass, and without allowGPUOptimizedContents. The nine layouts multisample_buffer_layouts holds the runtime to lay exactly where it expects, at both render-target usages. So the runtime's multisampled copies stand on a measurement that holds, and the multisampled short-pitch copy stays refused only because it is not measured. The probe records that answer; short_row_kinds.m, API.md, sample_interleave.rs and the layouts test say it. No behaviour changes. (cherry picked from commit 3660f4ec2f16c6ae8e0443b9989756116c1ffc0e)
This commit is contained in:
1 parent
1cbb0c9adb
commit
2e5a2b0d20
5 files changed
+34
-7
No files matched your search
+6
-2
@@ -4224,8 +4224,12 @@ each item named states the rule in full.
|
||||
out of it in no one order, the even rows' bytes standing or neither order's, varying from run to
|
||||
run (`probes/short_row_kinds.m`, three runs); the runtime's answer is the later row's there too.
|
||||
A multisampled texture's copy out at such a pitch stays refused (`Copy(BytesPerRow)`): where
|
||||
Metal places its rows there is not measured, as that probe's every copy between a buffer and a
|
||||
multisampled texture, at the packed row too, ended its process in Metal's blit (`SIGABRT`).
|
||||
Metal places its rows there is not measured. That probe's every copy between a buffer and a
|
||||
multisampled texture, at the packed row too, ended its process in Metal's blit (`SIGABRT`)
|
||||
because each case ran in a child that forked and had not exec'd, where Metal's compiler, which
|
||||
makes a multisampled blit's program, aborts. Spawned, the same copies return at every usage,
|
||||
storage mode and call tried, and nine of the multisampled layouts the runtime copies lie where
|
||||
it places them (`probes/multisample_buffer_copies.m`).
|
||||
|
||||
**Render passes**
|
||||
|
||||
|
||||
Reference in new issue
Block a user