Risks

  1. The kept part reads more than the kept groups (risk 1 of the map: viewports, dynamic state, vertex buffers, the fixed-function fields, the predicate). Each one left out of the key gives a wrong draw.
  2. The texture handles come from a constant buffer. A hit that does not compare them binds the wrong textures. The existing draw_holds may already miss a change of the vertex texture and image header variants, which come from the same handles. That needs a check before this design.
  3. A draw writes its targets. A texture kept over a target, or a sampled target, can be stale at the next draw (tex_over_holds, the layout).
  4. Read notes and lookups can reload targets and make surfaces in the middle of a hit.
  5. A submit during the setup lands results and voids the stamps.

Made from docs/dev/draw-fast-path.md at 69237645142c. GPL-3.0-or-later.