Skip to content

anv: allow TR-TT for compute and copy contexts

Paulo Zanoni requested to merge pzanoni/mesa:trtt-context-init into main

These patches enable TR-TT for the compute and copy contexts. This should work on LNL and the first 4 patches do it on LNL, but patch 5 also does it for Gen12+ (DG2 and MTL, in practice).

The Gen12 patch is marked as RFC. On DG2 I'm seeing some random test failures which I'm not 100% sure are caused by this or related to this, so I'll keep working on them. In the meantime, patches 1 to 4 could be merged after review.

Also notice that LNL is only supported by xe.ko so it's not using TR-TT by default (it's using vm_bind), so to test this on LNL you'll need ANV_SPARSE_USE_TRTT=1.

Merge request reports