Skip to content

anv: LNL+ doesn't need the special flush for sparse

Paulo Zanoni requested to merge pzanoni/mesa:lnl-sparse-no-tile-flushes into main

This is the result of our conversation on #11029. In theory this was supposed to give us 5% on Hitman 3, but I couldn't reproduce it on my environment. Still, not flushing is better than unnecessarily flushing.

If the flushes on LNL+ were necessary we'd be getting a ton of dEQP failures on sparse aliasing tests and others.

anv: LNL+ doesn't need the special flush for sparse

Newer hardware is smart enough to know that if something writes to a
NULL tile and immediately reads back the value (from the cache), the
value should read back as zero. Due to that, we don't need to flush
the tile cache, which is quite expensive.

Link: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11029

Cc: @fjdegroo

Merge request reports