A map of render_draw_main (lines 6501 to 8167 at the time) puts its steps in three classes. KEPT steps depend only on
the kept groups, the pools and stamps. EACH steps must run for each draw. MIXED steps have parts of both.
draw_find (S4, without its constant buffer fold and viewport checks), the targets (S6),
alpha_integer (S7), the predraw choice (S12), the target drops of S14, the "nothing drawn" test (S15), the pipeline
key k and pl of draw_key (S18, with pl.empty checked against the vertex buffers), and the pipeline (S29).fs_spec keys (S16: they read DrawCall fields and dynamic state), the blend and coverage
choices (S9, S10).Most KEPT work is already kept by memos: g_draw (draw_find, draw_keep), g_targets (read_targets),
g_fs_last (fs_key) and the texture memos (g_tex_recent, g_tex_memo). Each memo checks its own stamps on each
draw. So a fast path does not skip whole phases. It replaces several memo checks with one check.
Made from docs/dev/draw-fast-path.md at 69237645142c. GPL-3.0-or-later.