Skip to content

anv: Fix gfx8/9 VB range > 32bits workaround detection.

Emma Anholt requested to merge anholt/mesa:anv-vf-cache into main

Since the dirty range started out as 0..0, you would have 0..VBend as the new dirty range on the first draw, and if your VB was >32b then you'd flush every time you used it. Instead, if there's no existing dirty range then just set it to our new VB's range.

Sauerbraten trace on zink+anv on my CFL goes from 230 to 270 fps.

Merge request reports