Files
metal2vulkan/crates
Anees Iqbal d3c4f349bd rt README: a render state's first draw in a second topology class is a full compile on RADV, cold
A recorded stream's frame 199 draws lines with a render pipeline state that until then drew only triangles. On the 780M under RADV, rt made that state's line pipeline at the draw in 214 to 226 ms, all of it in the driver's compile. It went through the same VkPipelineCache the triangle pipeline was made through, with no cache replacement between. The other contents' line pipelines took 0.9 to 1.5 ms there, and the Intel driver's took 0.1 ms. RADV reports dynamicPrimitiveTopologyUnrestricted false, so a pipeline made for one topology class cannot draw another, and its stages are compiled anew for the second class. With NGG culling off (RADV_DEBUG=nonggc) the line pipeline still took 225.0 ms, so culling is not the cause. Linking from graphics pipeline libraries would make that pipeline in milliseconds, but the floor does not require them, and rule 2 allows no second form for them. The planner ruled a known gap with this wording and no build.

Verified: the 225 ms and the other contents' 0.9 and 1.5 ms are the probe player's line-make splits in job m3-max-49109 (780M, RADV, nonggc, a cold play to frame 201), and the 0.1 ms is job m3-max-49089's (Iris Xe, ANV, to frame 320). Docs only.
2026-11-18 18:31:59 -08:00
..