Runtime: rt's own copy into a texture over a buffer discards first, the evidence

No content change: the evidence for the form (a473ab8c92) and its layouts test (3df886d8f1,
418ff4c348).

rt's own copy tore 6 of 4,000 at R8Unorm 1920x1080 through rt before the form and 0 of 4,000
after (780M, RADV, validation layer not loaded); the recordings hold in-reach textures by
descriptor, whose copied form on the device files do not show.

The layouts test an_over_image_is_copied_in_from_undefined_and_back_from_home: red on lavapipe
at the commit before the form (job m3-max-76431), green with it (job m3-max-76432).

The arms, Radeon 780M (RADV PHOENIX, Mesa 26.2.6), through the runtime, validation layer not
loaded, 4,000 repeats an arm, every byte of a repeat unlike the last repeat's, read back whole:
- R8Unorm 1920x1080 ShaderRead|RenderTarget over a Shared buffer at a pitch of 2304 (cause
  Pitch), job m3-max-76446:
  - old form: refill 6 of 4,000 stale (repeats 418, 1367, 1484, 2674, 3318, 3807; 8 bytes each,
    every one the last repeat's), first use 0 of 4,000;
  - new form: refill 0 of 4,000, first use 0 of 4,000;
  - over_copies 4000, over_copies_pitch 4000, over_copy_bytes_shared 8294400000 in every arm.
- BGRA8Unorm 1024x1024 ShaderRead|RenderTarget at rows of 7680, offset 0, over a Shared buffer
  of 8,294,400 bytes, refill, job m3-max-76454: old form 0 of 4,000, new form 0 of 4,000;
  over_copies 4000, over_copies_pitch 4000 in each (the copied form ran).

The timed check, command-replay at 779fd31192 (old) and at 418ff4c348 (new), alternated in one
job (new, old, old, new), each play with a fresh shader cache; the sum of the frames' wall time
and GPU busy time per play. Deterministic counts (submissions, barriers, bytes copied, over-copy
bytes Shared, passes) equal in every play unless noted.
- Radeon 780M, glbench-780m-r2, job m3-max-76454 (exclusive): wall new 117.935 / 119.705 s,
  old 118.742 / 117.946 s, new +0.40% on the mean (the old pair 0.67% apart); GPU busy new
  16.998 / 17.022 s, old 17.061 / 17.040 s (-0.24%).
- RTX 5080 Laptop, gb-3090-r2 with --managed two-copy, job m3-max-76456 (exclusive): wall new
  85.560 / 86.018 s, old 84.570 / 83.330 s, new +2.19% (the old pair 1.48% apart); GPU busy new
  21.931 / 21.416 s, old 21.367 / 20.810 s (+2.77%). Both new plays slower than both old ones on
  both measures. Barriers 702306 / 702315 / 702312 / 702311: they move between plays of one
  build.
- Iris Xe (RPL-P, ANV), glbench-780m-r2, job m3-max-76477 (exclusive): wall new 131.978 /
  132.296 s, old 132.248 / 132.112 s, new -0.03% (the old pair 0.10% apart); GPU busy new
  32.386 / 32.392 s, old 32.380 / 32.364 s (+0.05%).

Values, one old and one new play with --check-presents, compared by compare-plays:
- Radeon 780M, glbench-780m-r2, job m3-max-76476: 15 frames checked in both, 0 differ; counts
  equal in 792 of 792 frames.
- RTX 5080 Laptop, gb-3090-r2, job m3-max-76470: 22 frames checked in both, 0 differ; counts
  equal in 1115 of 1115 frames.
- Iris Xe, glbench-780m-r2, job m3-max-76478: 15 frames checked in both, 0 differ; counts equal
  in 792 of 792 frames.

The branch's check, job m3-max-76451 at 418ff4c348: fmt, signatures, clippy (plain, m2v_gpu,
m2v_cpu_icd), Rustdoc, and the runtime's device suite on lavapipe with validation layer 1.4.363.0
(788 passed, 3 skipped).
This commit is contained in:
Anees Iqbal committed 2026-11-27 02:07:04 -08:00
1 parent 418ff4c348
commit ceed1a2727

Diff Content Not Available