perf(shader): compute v_fma_f16, v_fmac_f16, v_fmamk_f16 and v_fmaak_f16 with OpFmaKHR #15718

Merged
Nesyth merged 1 commit from upstream-pr/15718 into main 2026-11-04 19:18:51 +00:00
Nesyth commented 2026-11-04 09:30:02 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Nesyth on 2026-11-04T09:30:02Z.


What

The scalar half of step 2 of #11183. #11265 computes v_pk_fma_f16 and v_pk_fmac_f16 with one f16vec2 OpFmaKHR. The scalar forms (v_fma_f16, v_fmac_f16, v_fmamk_f16, v_fmaak_f16) still take the f32 path: each source is widened to f32 with integer operations, the sum is rounded to odd in f32 and then rounded to f16. That is about 120 SPIR-V instructions per instruction. #3557 kept them there because a plain f16 Fma need not be fused. OpFmaKHR must be fused.

With this PR they use the same FPFma16x2 op and the same device gate as #11265 (VK_KHR_shader_fma with shaderFmaFloat16, plus native f16 math). The FLOAT_MODE condition is the one #3557 uses for scalar add and mul: no FLOAT_MODE, or one that rounds f16 to nearest even and keeps f16 denormals. The sources go into the low halves after op_sel, abs and neg, and the result is the low half.

  • Why the bits don't change: the argument is the same as in #11265. OpFmaKHR is correctly rounded and respects DenormPreserve, and the module declares RoundingModeRTE 16. So every non-NaN result is a * b + c rounded once to f16, ties to even, with denormals kept. The f32 round-to-odd path computes exactly that.
  • NaN, overflow and clamp: the rules run on the result bits, as on the f32 path:
    • an invalid operation gives the default NaN 0xfe00: an inf * 0 product (also with a NaN src2), or a NaN result from sources that are not NaN;
    • FP16_OVFL turns an infinite result of finite sources into the largest finite half;
    • the clamp is clampF16Bits, as for #3557's add and mul.
  • NaN payloads: a NaN source's payload stays the driver's, as docs/dev/debt/shader.md already records for f16 arithmetic. It now comes from the driver's f16 fma rather than its f32 fma.
  • Other FLOAT_MODEs, and devices without shaderFmaFloat16, keep the f32 path.

agc_driver_float16_native already runs these seven fma forms (modifiers, op_sel, clamp, inline constant and literal) in ten float modes and compares them bit for bit with the f32 path, accepting another NaN payload only where both results are NaN. It now also requires OpFmaKHR on f16vec2 in the native modes when the device has FMAKHR, and none without it or in the flush mode.

Tested

Windows 11 Pro 26300, Radeon RX 7900 XTX (AMD Software 26.10.1, shaderFmaFloat16 = true), Ryzen 7 7800X3D, MinGW-w64 GCC 15.2, Ninja, Release, BUILD_TESTING=ON, this head on main b11c7bf84f.

  • Focused tests (ctest -R "fma|float16|f16|packed_alu|dx10_clamp|dpp8_pk_fmac|dpp16_operands|request_serializer|agc_shader_memory", 49 tests), ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1: 48 pass and agc_driver_float16_unused_nan_payloads skips, as it does on main on this device (no native f16 conversions with RTE rounding and kept f16 denormals). The same with VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation: 43 layer insertions with VK_LOADER_DEBUG=layer, no was not found line, no VUID- line.

  • agc_driver_float16_native: f16 native tests passed (327680 results, 28286 NaN results with another payload, fused f16 fma). Every result that is not a NaN matches the f32 path bit for bit, and agc_driver_f16_fma_invalid_nan (in the set) checks the default NaN of the invalid operations.

  • ^agc (-E "^agc_driver_bda_device$", -j12): 1362 of 1364. agc_driver_direct_write_completion and agc_driver_sample_order_grid_reference fail on main b11c7bf84f too.

  • Size, PPSA04264 compute shaders (agc_shader_replay --spv, requests saved with APS5_DUMP_SHADERS):

    request main main (--shader-fma) this PR (--shader-fma)
    0x25b16a200 (the 1440p to 2160p upscale) 318,361 218,405 129,192
    0x25b16ca00 (RCAS) 54,775 46,879 35,629
  • In game, PPSA04264 (city gameplay after the opening, 3840x2160 output, APS5_PROFILE_GPU, 10 s windows), measured before the rebase; the only change to FloatInstructions.cpp between that base and this one is #11265 itself, which both have. This head's driver gave the upscale 4.44-4.63 ms of GPU per dispatch and RCAS 0.86 ms. The same program took 8.9 ms with the shader paths before #11265 and 6.9-7.2 ms with #11265's, measured on a local build whose other commits do not touch the shader paths (RCAS 1.0 and 1.0 ms).

  • Frames, within one run (APS5_AB, 30 s phases, 20 phases, B against the neighbouring A): on a local build, dispatching the upscale four times instead of once (about +7 ms of GPU) costs 11.0 % of the presents (-12.6 +- 5.8 per 10 s) and adds 10.9 +- 5.2 ms per frame. Skipping it costs nothing at 2.4 ms (-2.7 +- 5.1 %), where it gave +11.6 % (SE 3.7) at 8.9 ms. So in this scene the upscale's GPU time is on the frame's path, and #11265, this PR and the next step together are worth about +10 % presents. Comparing whole boots instead (three interleaved pairs, warm caches) only shows the GPU part: GPU busy 39.2 -> 32.8 ms per present, and FPS 7.13 -> 7.26, inside the boot-to-boot noise of that scene.

Performance report (Performance report form): PPSA04264 open-world gameplay after the opening, 3840x2160 output, Performance graphics mode, APS5_TRACE_SECONDS=300:30, no other APS5_TRACE_* or APS5_PROFILE_* switch, the log not redirected. Each build ran the scene once and the title was restarted before its capture, and both captures come from this machine in one session.

  • The frame is bound by the CPU in this scene (queue worker 0x0 busy 97.8 % and 97.7 %), so the frame time does not move: p50 75.0 ms on main and 75.6 ms with this PR. The change shows in the GPU time: gpu_busy_ms_per_present 29.52 ms on main and 27.87 ms with this PR.
  • Both traces dropped events after their worker and committer buffers filled (trace_dropped, with totals_full false), so the summary lines are complete while the traces hold the first 7-16 s of those threads.
{"commit":"b11c7bf84f5d","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"300:30"},"gpu":"AMD Radeon RX 7900 XTX","driver":"AMD proprietary driver 26.10.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31860,"title_id":"PPSA04264","title":"Grand Theft Auto V","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 300:30","first_present":5059,"ms":30010.375},"presents":393,"frame_ms":{"p50":74.976,"p90":79.964,"p99":114.273,"max":207.577},"gpu_busy_ms_per_present":29.520,"worker_busy_pct":{"queue worker 0x0":97.791},"top_phases_ms_per_frame":{"Driver.Packet":70.871,"Graphics.Draw":46.794,"Driver.Packet.draw":43.543,"Driver.Draw":43.116,"Graphics.Draw.draw_and_resource_release":41.268,"Driver.Draw.shader_compile_and_link":26.404,"Shader.DrawStage":20.495,"Driver.Packet.dispatch":19.055},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":6.944,"events_lost":840984,"totals_full":false},"draw committer":{"events_full_after_s":15.886,"events_lost":223887,"totals_full":false}},"trace":"aps5-trace-b11c7bf84f5d-25208.json.gz"}
{"commit":"476df725ba14","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"300:30"},"gpu":"AMD Radeon RX 7900 XTX","driver":"AMD proprietary driver 26.10.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31860,"title_id":"PPSA04264","title":"Grand Theft Auto V","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 300:30","first_present":4887,"ms":30006.986},"presents":390,"frame_ms":{"p50":75.630,"p90":80.178,"p99":114.688,"max":139.883},"gpu_busy_ms_per_present":27.870,"worker_busy_pct":{"queue worker 0x0":97.719},"top_phases_ms_per_frame":{"Driver.Packet":71.331,"Graphics.Draw":49.609,"Driver.Packet.draw":46.031,"Driver.Draw":45.594,"Graphics.Draw.draw_and_resource_release":43.795,"Driver.Draw.shader_compile_and_link":26.977,"Shader.DrawStage":20.800,"Driver.Packet.dispatch":16.838},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":6.614,"events_lost":911231,"totals_full":false},"draw committer":{"events_full_after_s":14.926,"events_lost":253977,"totals_full":false}},"trace":"aps5-trace-476df725ba14-26272.json.gz"}

Traces: aps5-trace-b11c7bf84f5d-25208.json.gz (main) and aps5-trace-476df725ba14-26272.json.gz (this PR), attached below.

tools/trace_digest.py of the main capture

seconds 300:30 from present 5059: 393 presents, frame p50 75.0 / p90 80.0 / p99 114.3 / max 207.6 ms, GPU busy 29.5 ms per present
AMD Radeon RX 7900 XTX, AMD proprietary driver 26.10.1 (LLPC), Windows 10.0.26300, 3840x2160, commit b11c7bf84f, dropped: yes

{"commit":"b11c7bf84f5d","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"300:30"},"gpu":"AMD Radeon RX 7900 XTX","driver":"AMD proprietary driver 26.10.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31860,"title_id":"PPSA04264","title":"Grand Theft Auto V","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 300:30","first_present":5059,"ms":30010.375},"presents":393,"frame_ms":{"p50":74.976,"p90":79.964,"p99":114.273,"max":207.577},"gpu_busy_ms_per_present":29.52,"worker_busy_pct":{"queue worker 0x0":97.791},"top_phases_ms_per_frame":{"Driver.Packet":70.871,"Graphics.Draw":46.794,"Driver.Packet.draw":43.543,"Driver.Draw":43.116,"Graphics.Draw.draw_and_resource_release":41.268,"Driver.Draw.shader_compile_and_link":26.404,"Shader.DrawStage":20.495,"Driver.Packet.dispatch":19.055},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":6.944,"events_lost":840984,"totals_full":false},"draw committer":{"events_full_after_s":15.886,"events_lost":223887,"totals_full":false}},"trace":"aps5-trace-b11c7bf84f5d-25208.json.gz"}

Incomplete trace: recorded data was lost. Slice-based timings, waits and batch inventories cover retained events only; missing slices are not idle time. Summary statistics are reported separately.

  • queue worker 0x0: 840984 events lost; buffer full at 6944.3 ms
  • draw committer: 223887 events lost; buffer full at 15886.4 ms

Slowest frames (largest slices inside each, inclusive)

  • present 5402: 207.6 ms at 25949 ms: batch (gpu) 30.0, VideoOut.Flip (presenter) 12.8, VideoOut.Flip.present (presenter) 12.7, Driver.Present (presenter) 12.7
  • present 5176: 128.0 ms at 8859 ms: Graphics.Draw (draw committer) 30.8, batch (gpu) 28.3, Graphics.Draw.draw_and_resource_release (draw committer) 25.1, VideoOut.Flip (presenter) 12.3
  • present 5350: 115.7 ms at 21733 ms: batch (gpu) 29.4, VideoOut.Flip (presenter) 12.6, VideoOut.Flip.present (presenter) 12.5, Driver.Present (presenter) 12.5
  • present 5326: 114.3 ms at 19890 ms: batch (gpu) 29.6, VideoOut.Flip (presenter) 14.5, VideoOut.Flip.present (presenter) 12.9, Driver.Present (presenter) 12.9
  • present 5132: 113.3 ms at 5543 ms: Driver.Packet (queue worker 0x0) 89.1, Graphics.Draw (draw committer) 46.5, Driver.Packet.draw (queue worker 0x0) 45.5, Driver.Draw (queue worker 0x0) 45.1

Persistent spikes (frame time above the fastest frame that separates it from a longer frame; one entry per stall, not per frame)

  • present 5402: 207.6 ms at 25949 ms, persistence 139.9 ms
  • present 5176: 128.0 ms at 8859 ms, persistence 60.3 ms
  • present 5326: 114.3 ms at 19890 ms, persistence 45.1 ms
  • present 5350: 115.7 ms at 21733 ms, persistence 43.4 ms
  • present 5132: 113.3 ms at 5543 ms, persistence 42.5 ms
  • present 5353: 108.3 ms at 21994 ms, persistence 34.1 ms
  • present 5338: 103.2 ms at 20802 ms, persistence 33.0 ms
  • present 5363: 103.7 ms at 22805 ms, persistence 29.4 ms
  • present 5374: 94.3 ms at 23699 ms, persistence 19.3 ms
  • present 5365: 94.9 ms at 22985 ms, persistence 18.4 ms

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
title 0.0 (0 %) 0.0 (0 %) 76.4 0.0 Shader.ResolveGraphicsStagesAbi 0.0
queue worker 0x0 12.3 (16 %) 0.3 (0 %) 63.8 27.1 Driver.Packet 11.8, Driver.Rewind 0.6
draw committer 23.4 (31 %) 0.1 (0 %) 52.9 18.9 Graphics.Draw 16.4, Recorder.Sync 5.4
presenter 2.2 (3 %) 11.0 (14 %) 63.1 0.0 VideoOut.Flip 13.2, Driver.Present 0.0
gpu 29.5 (39 %) 0.0 (0 %) 46.9 0.0 batch 29.5

Largest slices (ms per frame, inclusive, all threads): batch 29.5, Graphics.Draw 16.6, Graphics.Draw.draw_and_resource_release 13.5, VideoOut.Flip 13.2, Driver.Present 13.1, VideoOut.Flip.present 13.0, Driver.Packet 11.8, Driver.Present.acquire_image 8.4, Vulkan.Acquire 8.4, Vulkan.Acquire.acquire_fence_wait 8.3

Longest waits

  • Driver.Present.gpu_mutex_wait (presenter) 9.9 ms at 17631 ms, present 5294
  • Vulkan.Acquire.acquire_fence_wait (presenter) 9.3 ms at 16228 ms, present 5275
  • Vulkan.Acquire.acquire_fence_wait (presenter) 9.3 ms at 13631 ms, present 5240
  • Vulkan.Acquire.acquire_fence_wait (presenter) 9.3 ms at 14514 ms, present 5252
  • Vulkan.Acquire.acquire_fence_wait (presenter) 9.2 ms at 23870 ms, present 5376
  • Vulkan.Acquire.acquire_fence_wait (presenter) 9.2 ms at 8786 ms, present 5175
  • Vulkan.Acquire.acquire_fence_wait (presenter) 9.2 ms at 15638 ms, present 5267
  • Vulkan.Acquire.acquire_fence_wait (presenter) 9.2 ms at 80 ms, present 5060
  • Vulkan.Acquire.acquire_fence_wait (presenter) 9.2 ms at 12884 ms, present 5230
  • Vulkan.Acquire.acquire_fence_wait (presenter) 9.2 ms at 11487 ms, present 5211

Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)

  • batch 16636: 10.9 ms at 11263 ms, present 5207: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.4, Graphics.Draw.draw_and_resource_release (draw committer) 0.4, Recorder.Submit (draw committer) 0.1
  • batch 23750: 10.6 ms at 15930 ms, present 5270: GPU no ranges; recorded by no CPU slices
  • batch 2570: 10.6 ms at 1805 ms, present 5082: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.3, Graphics.Draw.draw_and_resource_release (draw committer) 0.3
  • batch 7531: 10.6 ms at 5086 ms, present 5125: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.4, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.0
  • batch 25008: 10.6 ms at 16755 ms, present 5281: GPU no ranges; recorded by no CPU slices
tools/trace_digest.py of this PR's capture

seconds 300:30 from present 4887: 390 presents, frame p50 75.6 / p90 80.2 / p99 114.7 / max 139.9 ms, GPU busy 27.9 ms per present
AMD Radeon RX 7900 XTX, AMD proprietary driver 26.10.1 (LLPC), Windows 10.0.26300, 3840x2160, commit 476df725ba, dropped: yes

{"commit":"476df725ba14","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"300:30"},"gpu":"AMD Radeon RX 7900 XTX","driver":"AMD proprietary driver 26.10.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31860,"title_id":"PPSA04264","title":"Grand Theft Auto V","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 300:30","first_present":4887,"ms":30006.986},"presents":390,"frame_ms":{"p50":75.63,"p90":80.178,"p99":114.688,"max":139.883},"gpu_busy_ms_per_present":27.87,"worker_busy_pct":{"queue worker 0x0":97.719},"top_phases_ms_per_frame":{"Driver.Packet":71.331,"Graphics.Draw":49.609,"Driver.Packet.draw":46.031,"Driver.Draw":45.594,"Graphics.Draw.draw_and_resource_release":43.795,"Driver.Draw.shader_compile_and_link":26.977,"Shader.DrawStage":20.8,"Driver.Packet.dispatch":16.838},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":6.614,"events_lost":911231,"totals_full":false},"draw committer":{"events_full_after_s":14.926,"events_lost":253977,"totals_full":false}},"trace":"aps5-trace-476df725ba14-26272.json.gz"}

Incomplete trace: recorded data was lost. Slice-based timings, waits and batch inventories cover retained events only; missing slices are not idle time. Summary statistics are reported separately.

  • queue worker 0x0: 911231 events lost; buffer full at 6614.3 ms
  • draw committer: 253977 events lost; buffer full at 14926.4 ms

Slowest frames (largest slices inside each, inclusive)

  • present 4887: 139.9 ms at 0 ms: Driver.Packet (queue worker 0x0) 108.9, Driver.Packet.draw (queue worker 0x0) 88.7, Driver.Draw (queue worker 0x0) 88.0, Driver.Draw.shader_compile_and_link (queue worker 0x0) 68.0
  • present 5228: 128.2 ms at 26087 ms: batch (gpu) 27.0, VideoOut.Flip (presenter) 9.9, VideoOut.Flip.present (presenter) 9.0, Driver.Present (presenter) 9.0
  • present 5192: 128.0 ms at 23405 ms: batch (gpu) 24.9, VideoOut.Flip (presenter) 7.2, VideoOut.Flip.present (presenter) 7.1, Driver.Present (presenter) 7.1
  • present 4992: 114.7 ms at 8201 ms: Graphics.Draw (draw committer) 46.4, Graphics.Draw.draw_and_resource_release (draw committer) 38.2, batch (gpu) 28.7, VideoOut.Flip (presenter) 10.3
  • present 5259: 113.3 ms at 28596 ms: batch (gpu) 29.0, VideoOut.Flip (presenter) 13.7, VideoOut.Flip.present (presenter) 13.3, Driver.Present (presenter) 13.3

Persistent spikes (frame time above the fastest frame that separates it from a longer frame; one entry per stall, not per frame)

  • present 4887: 139.9 ms at 0 ms, persistence 71.3 ms
  • present 5228: 128.2 ms at 26087 ms, persistence 59.6 ms
  • present 5192: 128.0 ms at 23405 ms, persistence 58.2 ms
  • present 5259: 113.3 ms at 28596 ms, persistence 43.3 ms
  • present 4992: 114.7 ms at 8201 ms, persistence 41.9 ms
  • present 5240: 111.3 ms at 27057 ms, persistence 40.7 ms
  • present 5254: 107.7 ms at 28200 ms, persistence 37.3 ms
  • present 5047: 96.2 ms at 12439 ms, persistence 24.9 ms
  • present 5252: 97.1 ms at 28033 ms, persistence 24.1 ms
  • present 5202: 93.0 ms at 24194 ms, persistence 22.4 ms

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
title 0.0 (0 %) 0.0 (0 %) 76.9 0.0 Shader.ResolveGraphicsStagesAbi 0.0
queue worker 0x0 11.7 (15 %) 0.3 (0 %) 64.9 26.6 Driver.Packet 11.2, Driver.Rewind 0.6
draw committer 22.3 (29 %) 0.1 (0 %) 54.5 17.5 Graphics.Draw 17.1, Recorder.Sync 3.7
presenter 2.2 (3 %) 7.9 (10 %) 66.9 0.1 VideoOut.Flip 10.0, Driver.Present 0.0
gpu 27.9 (36 %) 0.0 (0 %) 49.1 0.0 batch 27.9

Largest slices (ms per frame, inclusive, all threads): batch 27.9, Graphics.Draw 17.3, Graphics.Draw.draw_and_resource_release 14.2, Driver.Packet 11.2, VideoOut.Flip 10.0, Driver.Present 9.9, VideoOut.Flip.present 9.9, Driver.Packet.draw 6.9, Driver.Draw 6.8, Recorder.Sync 4.8

Longest waits

  • Driver.Present.gpu_mutex_wait (presenter) 8.2 ms at 22224 ms, present 5176
  • Driver.Present.gpu_mutex_wait (presenter) 8.0 ms at 15864 ms, present 5092
  • Driver.Present.gpu_mutex_wait (presenter) 7.9 ms at 22072 ms, present 5174
  • Driver.Present.gpu_mutex_wait (presenter) 7.9 ms at 4526 ms, present 4944
  • Driver.Present.gpu_mutex_wait (presenter) 7.8 ms at 3763 ms, present 4934
  • Driver.Present.gpu_mutex_wait (presenter) 7.8 ms at 16238 ms, present 5097
  • Driver.Present.gpu_mutex_wait (presenter) 7.8 ms at 5821 ms, present 4961
  • Driver.Present.gpu_mutex_wait (presenter) 7.7 ms at 9634 ms, present 5010
  • Driver.Present.gpu_mutex_wait (presenter) 7.7 ms at 23117 ms, present 5188
  • Driver.Present.gpu_mutex_wait (presenter) 7.6 ms at 21084 ms, present 5161

Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)

  • batch 24085: 8.2 ms at 16759 ms, present 5103: GPU no ranges; recorded by no CPU slices
  • batch 17907: 8.1 ms at 12535 ms, present 5047: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.5, Recorder.Submit (draw committer) 0.0
  • batch 39106: 8.0 ms at 27056 ms, present 5239: GPU no ranges; recorded by no CPU slices
  • batch 11158: 8.0 ms at 7825 ms, present 4986: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.3, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.0
  • batch 18348: 8.0 ms at 12843 ms, present 5051: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.3, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.0

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none (#11265 is merged)
  • Fixes: none
  • Unblocks: none
  • GPUs tested: AMD Radeon RX 7900 XTX, AMD Software 26.10.1 (32.0.32015.7029), Windows 11 Pro 26300
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5152081804 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15718). Originally posted by [Nesyth](https://github.com/Nesyth) on 2026-11-04T09:30:02Z. --- ### What The scalar half of step 2 of #11183. #11265 computes `v_pk_fma_f16` and `v_pk_fmac_f16` with one f16vec2 `OpFmaKHR`. The scalar forms (`v_fma_f16`, `v_fmac_f16`, `v_fmamk_f16`, `v_fmaak_f16`) still take the f32 path: each source is widened to f32 with integer operations, the sum is rounded to odd in f32 and then rounded to f16. That is about 120 SPIR-V instructions per instruction. #3557 kept them there because a plain f16 `Fma` need not be fused. `OpFmaKHR` must be fused. With this PR they use the same `FPFma16x2` op and the same device gate as #11265 (`VK_KHR_shader_fma` with `shaderFmaFloat16`, plus native f16 math). The FLOAT_MODE condition is the one #3557 uses for scalar add and mul: no FLOAT_MODE, or one that rounds f16 to nearest even and keeps f16 denormals. The sources go into the low halves after `op_sel`, `abs` and `neg`, and the result is the low half. - **Why the bits don't change:** the argument is the same as in #11265. `OpFmaKHR` is correctly rounded and respects `DenormPreserve`, and the module declares `RoundingModeRTE` 16. So every non-NaN result is `a * b + c` rounded once to f16, ties to even, with denormals kept. The f32 round-to-odd path computes exactly that. - **NaN, overflow and clamp:** the rules run on the result bits, as on the f32 path: - an invalid operation gives the default NaN 0xfe00: an inf * 0 product (also with a NaN src2), or a NaN result from sources that are not NaN; - `FP16_OVFL` turns an infinite result of finite sources into the largest finite half; - the clamp is `clampF16Bits`, as for #3557's add and mul. - **NaN payloads:** a NaN source's payload stays the driver's, as `docs/dev/debt/shader.md` already records for f16 arithmetic. It now comes from the driver's f16 fma rather than its f32 fma. - Other FLOAT_MODEs, and devices without `shaderFmaFloat16`, keep the f32 path. `agc_driver_float16_native` already runs these seven fma forms (modifiers, `op_sel`, clamp, inline constant and literal) in ten float modes and compares them bit for bit with the f32 path, accepting another NaN payload only where both results are NaN. It now also requires `OpFmaKHR` on f16vec2 in the native modes when the device has `FMAKHR`, and none without it or in the flush mode. ### Tested Windows 11 Pro 26300, Radeon RX 7900 XTX (AMD Software 26.10.1, `shaderFmaFloat16` = true), Ryzen 7 7800X3D, MinGW-w64 GCC 15.2, Ninja, Release, `BUILD_TESTING=ON`, this head on main `b11c7bf84f`. - Focused tests (`ctest -R "fma|float16|f16|packed_alu|dx10_clamp|dpp8_pk_fmac|dpp16_operands|request_serializer|agc_shader_memory"`, 49 tests), `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1`: 48 pass and `agc_driver_float16_unused_nan_payloads` skips, as it does on `main` on this device (no native f16 conversions with RTE rounding and kept f16 denormals). The same with `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`: 43 layer insertions with `VK_LOADER_DEBUG=layer`, no `was not found` line, no `VUID-` line. - `agc_driver_float16_native`: `f16 native tests passed (327680 results, 28286 NaN results with another payload, fused f16 fma)`. Every result that is not a NaN matches the f32 path bit for bit, and `agc_driver_f16_fma_invalid_nan` (in the set) checks the default NaN of the invalid operations. - `^agc` (`-E "^agc_driver_bda_device$"`, `-j12`): 1362 of 1364. `agc_driver_direct_write_completion` and `agc_driver_sample_order_grid_reference` fail on `main` `b11c7bf84f` too. - **Size, PPSA04264 compute shaders** (`agc_shader_replay --spv`, requests saved with `APS5_DUMP_SHADERS`): | request | `main` | `main` (`--shader-fma`) | this PR (`--shader-fma`) | |---|---|---|---| | `0x25b16a200` (the 1440p to 2160p upscale) | 318,361 | 218,405 | 129,192 | | `0x25b16ca00` (RCAS) | 54,775 | 46,879 | 35,629 | - **In game, PPSA04264** (city gameplay after the opening, 3840x2160 output, `APS5_PROFILE_GPU`, 10 s windows), measured before the rebase; the only change to `FloatInstructions.cpp` between that base and this one is #11265 itself, which both have. This head's driver gave the upscale 4.44-4.63 ms of GPU per dispatch and RCAS 0.86 ms. The same program took 8.9 ms with the shader paths before #11265 and 6.9-7.2 ms with #11265's, measured on a local build whose other commits do not touch the shader paths (RCAS 1.0 and 1.0 ms). - Frames, within one run (`APS5_AB`, 30 s phases, 20 phases, B against the neighbouring A): on a local build, dispatching the upscale four times instead of once (about +7 ms of GPU) costs 11.0 % of the presents (-12.6 +- 5.8 per 10 s) and adds 10.9 +- 5.2 ms per frame. Skipping it costs nothing at 2.4 ms (-2.7 +- 5.1 %), where it gave +11.6 % (SE 3.7) at 8.9 ms. So in this scene the upscale's GPU time is on the frame's path, and #11265, this PR and the next step together are worth about +10 % presents. Comparing whole boots instead (three interleaved pairs, warm caches) only shows the GPU part: GPU busy 39.2 -> 32.8 ms per present, and FPS 7.13 -> 7.26, inside the boot-to-boot noise of that scene. **Performance report** (Performance report form): PPSA04264 open-world gameplay after the opening, 3840x2160 output, Performance graphics mode, `APS5_TRACE_SECONDS=300:30`, no other `APS5_TRACE_*` or `APS5_PROFILE_*` switch, the log not redirected. Each build ran the scene once and the title was restarted before its capture, and both captures come from this machine in one session. - The frame is bound by the CPU in this scene (`queue worker 0x0` busy 97.8 % and 97.7 %), so the frame time does not move: p50 75.0 ms on `main` and 75.6 ms with this PR. The change shows in the GPU time: `gpu_busy_ms_per_present` 29.52 ms on `main` and 27.87 ms with this PR. - Both traces dropped events after their worker and committer buffers filled (`trace_dropped`, with `totals_full` false), so the summary lines are complete while the traces hold the first 7-16 s of those threads. ```json {"commit":"b11c7bf84f5d","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"300:30"},"gpu":"AMD Radeon RX 7900 XTX","driver":"AMD proprietary driver 26.10.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31860,"title_id":"PPSA04264","title":"Grand Theft Auto V","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 300:30","first_present":5059,"ms":30010.375},"presents":393,"frame_ms":{"p50":74.976,"p90":79.964,"p99":114.273,"max":207.577},"gpu_busy_ms_per_present":29.520,"worker_busy_pct":{"queue worker 0x0":97.791},"top_phases_ms_per_frame":{"Driver.Packet":70.871,"Graphics.Draw":46.794,"Driver.Packet.draw":43.543,"Driver.Draw":43.116,"Graphics.Draw.draw_and_resource_release":41.268,"Driver.Draw.shader_compile_and_link":26.404,"Shader.DrawStage":20.495,"Driver.Packet.dispatch":19.055},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":6.944,"events_lost":840984,"totals_full":false},"draw committer":{"events_full_after_s":15.886,"events_lost":223887,"totals_full":false}},"trace":"aps5-trace-b11c7bf84f5d-25208.json.gz"} {"commit":"476df725ba14","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"300:30"},"gpu":"AMD Radeon RX 7900 XTX","driver":"AMD proprietary driver 26.10.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31860,"title_id":"PPSA04264","title":"Grand Theft Auto V","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 300:30","first_present":4887,"ms":30006.986},"presents":390,"frame_ms":{"p50":75.630,"p90":80.178,"p99":114.688,"max":139.883},"gpu_busy_ms_per_present":27.870,"worker_busy_pct":{"queue worker 0x0":97.719},"top_phases_ms_per_frame":{"Driver.Packet":71.331,"Graphics.Draw":49.609,"Driver.Packet.draw":46.031,"Driver.Draw":45.594,"Graphics.Draw.draw_and_resource_release":43.795,"Driver.Draw.shader_compile_and_link":26.977,"Shader.DrawStage":20.800,"Driver.Packet.dispatch":16.838},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":6.614,"events_lost":911231,"totals_full":false},"draw committer":{"events_full_after_s":14.926,"events_lost":253977,"totals_full":false}},"trace":"aps5-trace-476df725ba14-26272.json.gz"} ``` Traces: `aps5-trace-b11c7bf84f5d-25208.json.gz` (`main`) and `aps5-trace-476df725ba14-26272.json.gz` (this PR), attached below. <details><summary><code>tools/trace_digest.py</code> of the <code>main</code> capture</summary> **seconds 300:30** from present 5059: 393 presents, frame p50 75.0 / p90 80.0 / p99 114.3 / max 207.6 ms, GPU busy 29.5 ms per present AMD Radeon RX 7900 XTX, AMD proprietary driver 26.10.1 (LLPC), Windows 10.0.26300, 3840x2160, commit b11c7bf84f5d, dropped: yes ```json {"commit":"b11c7bf84f5d","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"300:30"},"gpu":"AMD Radeon RX 7900 XTX","driver":"AMD proprietary driver 26.10.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31860,"title_id":"PPSA04264","title":"Grand Theft Auto V","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 300:30","first_present":5059,"ms":30010.375},"presents":393,"frame_ms":{"p50":74.976,"p90":79.964,"p99":114.273,"max":207.577},"gpu_busy_ms_per_present":29.52,"worker_busy_pct":{"queue worker 0x0":97.791},"top_phases_ms_per_frame":{"Driver.Packet":70.871,"Graphics.Draw":46.794,"Driver.Packet.draw":43.543,"Driver.Draw":43.116,"Graphics.Draw.draw_and_resource_release":41.268,"Driver.Draw.shader_compile_and_link":26.404,"Shader.DrawStage":20.495,"Driver.Packet.dispatch":19.055},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":6.944,"events_lost":840984,"totals_full":false},"draw committer":{"events_full_after_s":15.886,"events_lost":223887,"totals_full":false}},"trace":"aps5-trace-b11c7bf84f5d-25208.json.gz"} ``` **Incomplete trace:** recorded data was lost. Slice-based timings, waits and batch inventories cover retained events only; missing slices are not idle time. Summary statistics are reported separately. - queue worker 0x0: 840984 events lost; buffer full at 6944.3 ms - draw committer: 223887 events lost; buffer full at 15886.4 ms **Slowest frames** (largest slices inside each, inclusive) - present 5402: 207.6 ms at 25949 ms: batch (gpu) 30.0, VideoOut.Flip (presenter) 12.8, VideoOut.Flip.present (presenter) 12.7, Driver.Present (presenter) 12.7 - present 5176: 128.0 ms at 8859 ms: Graphics.Draw (draw committer) 30.8, batch (gpu) 28.3, Graphics.Draw.draw_and_resource_release (draw committer) 25.1, VideoOut.Flip (presenter) 12.3 - present 5350: 115.7 ms at 21733 ms: batch (gpu) 29.4, VideoOut.Flip (presenter) 12.6, VideoOut.Flip.present (presenter) 12.5, Driver.Present (presenter) 12.5 - present 5326: 114.3 ms at 19890 ms: batch (gpu) 29.6, VideoOut.Flip (presenter) 14.5, VideoOut.Flip.present (presenter) 12.9, Driver.Present (presenter) 12.9 - present 5132: 113.3 ms at 5543 ms: Driver.Packet (queue worker 0x0) 89.1, Graphics.Draw (draw committer) 46.5, Driver.Packet.draw (queue worker 0x0) 45.5, Driver.Draw (queue worker 0x0) 45.1 **Persistent spikes** (frame time above the fastest frame that separates it from a longer frame; one entry per stall, not per frame) - present 5402: 207.6 ms at 25949 ms, persistence 139.9 ms - present 5176: 128.0 ms at 8859 ms, persistence 60.3 ms - present 5326: 114.3 ms at 19890 ms, persistence 45.1 ms - present 5350: 115.7 ms at 21733 ms, persistence 43.4 ms - present 5132: 113.3 ms at 5543 ms, persistence 42.5 ms - present 5353: 108.3 ms at 21994 ms, persistence 34.1 ms - present 5338: 103.2 ms at 20802 ms, persistence 33.0 ms - present 5363: 103.7 ms at 22805 ms, persistence 29.4 ms - present 5374: 94.3 ms at 23699 ms, persistence 19.3 ms - present 5365: 94.9 ms at 22985 ms, persistence 18.4 ms **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | title | 0.0 (0 %) | 0.0 (0 %) | 76.4 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0 | | queue worker 0x0 | 12.3 (16 %) | 0.3 (0 %) | 63.8 | 27.1 | Driver.Packet 11.8, Driver.Rewind 0.6 | | draw committer | 23.4 (31 %) | 0.1 (0 %) | 52.9 | 18.9 | Graphics.Draw 16.4, Recorder.Sync 5.4 | | presenter | 2.2 (3 %) | 11.0 (14 %) | 63.1 | 0.0 | VideoOut.Flip 13.2, Driver.Present 0.0 | | gpu | 29.5 (39 %) | 0.0 (0 %) | 46.9 | 0.0 | batch 29.5 | **Largest slices** (ms per frame, inclusive, all threads): batch 29.5, Graphics.Draw 16.6, Graphics.Draw.draw_and_resource_release 13.5, VideoOut.Flip 13.2, Driver.Present 13.1, VideoOut.Flip.present 13.0, Driver.Packet 11.8, Driver.Present.acquire_image 8.4, Vulkan.Acquire 8.4, Vulkan.Acquire.acquire_fence_wait 8.3 **Longest waits** - Driver.Present.gpu_mutex_wait (presenter) 9.9 ms at 17631 ms, present 5294 - Vulkan.Acquire.acquire_fence_wait (presenter) 9.3 ms at 16228 ms, present 5275 - Vulkan.Acquire.acquire_fence_wait (presenter) 9.3 ms at 13631 ms, present 5240 - Vulkan.Acquire.acquire_fence_wait (presenter) 9.3 ms at 14514 ms, present 5252 - Vulkan.Acquire.acquire_fence_wait (presenter) 9.2 ms at 23870 ms, present 5376 - Vulkan.Acquire.acquire_fence_wait (presenter) 9.2 ms at 8786 ms, present 5175 - Vulkan.Acquire.acquire_fence_wait (presenter) 9.2 ms at 15638 ms, present 5267 - Vulkan.Acquire.acquire_fence_wait (presenter) 9.2 ms at 80 ms, present 5060 - Vulkan.Acquire.acquire_fence_wait (presenter) 9.2 ms at 12884 ms, present 5230 - Vulkan.Acquire.acquire_fence_wait (presenter) 9.2 ms at 11487 ms, present 5211 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 16636: 10.9 ms at 11263 ms, present 5207: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.4, Graphics.Draw.draw_and_resource_release (draw committer) 0.4, Recorder.Submit (draw committer) 0.1 - batch 23750: 10.6 ms at 15930 ms, present 5270: GPU no ranges; recorded by no CPU slices - batch 2570: 10.6 ms at 1805 ms, present 5082: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.3, Graphics.Draw.draw_and_resource_release (draw committer) 0.3 - batch 7531: 10.6 ms at 5086 ms, present 5125: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.4, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.0 - batch 25008: 10.6 ms at 16755 ms, present 5281: GPU no ranges; recorded by no CPU slices </details> <details><summary><code>tools/trace_digest.py</code> of this PR's capture</summary> **seconds 300:30** from present 4887: 390 presents, frame p50 75.6 / p90 80.2 / p99 114.7 / max 139.9 ms, GPU busy 27.9 ms per present AMD Radeon RX 7900 XTX, AMD proprietary driver 26.10.1 (LLPC), Windows 10.0.26300, 3840x2160, commit 476df725ba14, dropped: yes ```json {"commit":"476df725ba14","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"300:30"},"gpu":"AMD Radeon RX 7900 XTX","driver":"AMD proprietary driver 26.10.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31860,"title_id":"PPSA04264","title":"Grand Theft Auto V","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 300:30","first_present":4887,"ms":30006.986},"presents":390,"frame_ms":{"p50":75.63,"p90":80.178,"p99":114.688,"max":139.883},"gpu_busy_ms_per_present":27.87,"worker_busy_pct":{"queue worker 0x0":97.719},"top_phases_ms_per_frame":{"Driver.Packet":71.331,"Graphics.Draw":49.609,"Driver.Packet.draw":46.031,"Driver.Draw":45.594,"Graphics.Draw.draw_and_resource_release":43.795,"Driver.Draw.shader_compile_and_link":26.977,"Shader.DrawStage":20.8,"Driver.Packet.dispatch":16.838},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":6.614,"events_lost":911231,"totals_full":false},"draw committer":{"events_full_after_s":14.926,"events_lost":253977,"totals_full":false}},"trace":"aps5-trace-476df725ba14-26272.json.gz"} ``` **Incomplete trace:** recorded data was lost. Slice-based timings, waits and batch inventories cover retained events only; missing slices are not idle time. Summary statistics are reported separately. - queue worker 0x0: 911231 events lost; buffer full at 6614.3 ms - draw committer: 253977 events lost; buffer full at 14926.4 ms **Slowest frames** (largest slices inside each, inclusive) - present 4887: 139.9 ms at 0 ms: Driver.Packet (queue worker 0x0) 108.9, Driver.Packet.draw (queue worker 0x0) 88.7, Driver.Draw (queue worker 0x0) 88.0, Driver.Draw.shader_compile_and_link (queue worker 0x0) 68.0 - present 5228: 128.2 ms at 26087 ms: batch (gpu) 27.0, VideoOut.Flip (presenter) 9.9, VideoOut.Flip.present (presenter) 9.0, Driver.Present (presenter) 9.0 - present 5192: 128.0 ms at 23405 ms: batch (gpu) 24.9, VideoOut.Flip (presenter) 7.2, VideoOut.Flip.present (presenter) 7.1, Driver.Present (presenter) 7.1 - present 4992: 114.7 ms at 8201 ms: Graphics.Draw (draw committer) 46.4, Graphics.Draw.draw_and_resource_release (draw committer) 38.2, batch (gpu) 28.7, VideoOut.Flip (presenter) 10.3 - present 5259: 113.3 ms at 28596 ms: batch (gpu) 29.0, VideoOut.Flip (presenter) 13.7, VideoOut.Flip.present (presenter) 13.3, Driver.Present (presenter) 13.3 **Persistent spikes** (frame time above the fastest frame that separates it from a longer frame; one entry per stall, not per frame) - present 4887: 139.9 ms at 0 ms, persistence 71.3 ms - present 5228: 128.2 ms at 26087 ms, persistence 59.6 ms - present 5192: 128.0 ms at 23405 ms, persistence 58.2 ms - present 5259: 113.3 ms at 28596 ms, persistence 43.3 ms - present 4992: 114.7 ms at 8201 ms, persistence 41.9 ms - present 5240: 111.3 ms at 27057 ms, persistence 40.7 ms - present 5254: 107.7 ms at 28200 ms, persistence 37.3 ms - present 5047: 96.2 ms at 12439 ms, persistence 24.9 ms - present 5252: 97.1 ms at 28033 ms, persistence 24.1 ms - present 5202: 93.0 ms at 24194 ms, persistence 22.4 ms **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | title | 0.0 (0 %) | 0.0 (0 %) | 76.9 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0 | | queue worker 0x0 | 11.7 (15 %) | 0.3 (0 %) | 64.9 | 26.6 | Driver.Packet 11.2, Driver.Rewind 0.6 | | draw committer | 22.3 (29 %) | 0.1 (0 %) | 54.5 | 17.5 | Graphics.Draw 17.1, Recorder.Sync 3.7 | | presenter | 2.2 (3 %) | 7.9 (10 %) | 66.9 | 0.1 | VideoOut.Flip 10.0, Driver.Present 0.0 | | gpu | 27.9 (36 %) | 0.0 (0 %) | 49.1 | 0.0 | batch 27.9 | **Largest slices** (ms per frame, inclusive, all threads): batch 27.9, Graphics.Draw 17.3, Graphics.Draw.draw_and_resource_release 14.2, Driver.Packet 11.2, VideoOut.Flip 10.0, Driver.Present 9.9, VideoOut.Flip.present 9.9, Driver.Packet.draw 6.9, Driver.Draw 6.8, Recorder.Sync 4.8 **Longest waits** - Driver.Present.gpu_mutex_wait (presenter) 8.2 ms at 22224 ms, present 5176 - Driver.Present.gpu_mutex_wait (presenter) 8.0 ms at 15864 ms, present 5092 - Driver.Present.gpu_mutex_wait (presenter) 7.9 ms at 22072 ms, present 5174 - Driver.Present.gpu_mutex_wait (presenter) 7.9 ms at 4526 ms, present 4944 - Driver.Present.gpu_mutex_wait (presenter) 7.8 ms at 3763 ms, present 4934 - Driver.Present.gpu_mutex_wait (presenter) 7.8 ms at 16238 ms, present 5097 - Driver.Present.gpu_mutex_wait (presenter) 7.8 ms at 5821 ms, present 4961 - Driver.Present.gpu_mutex_wait (presenter) 7.7 ms at 9634 ms, present 5010 - Driver.Present.gpu_mutex_wait (presenter) 7.7 ms at 23117 ms, present 5188 - Driver.Present.gpu_mutex_wait (presenter) 7.6 ms at 21084 ms, present 5161 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 24085: 8.2 ms at 16759 ms, present 5103: GPU no ranges; recorded by no CPU slices - batch 17907: 8.1 ms at 12535 ms, present 5047: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.5, Recorder.Submit (draw committer) 0.0 - batch 39106: 8.0 ms at 27056 ms, present 5239: GPU no ranges; recorded by no CPU slices - batch 11158: 8.0 ms at 7825 ms, present 4986: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.3, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.0 - batch 18348: 8.0 ms at 12843 ms, present 5051: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.3, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.0 </details> ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none (#11265 is merged) - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: AMD Radeon RX 7900 XTX, AMD Software 26.10.1 (32.0.32015.7029), Windows 11 Pro 26300 - [x] AI-assisted: yes
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!15718
No description provided.