Skip to content

venus: remove 2 redundant roundtrips

Yiwei Zhang requested to merge zzyiwei/mesa:rm-roundtrip into main

bo allocations for the below cases are after device memory allocation:

  1. direct non-external mappable memory allocation
  2. pool grow
  3. exportable memory allocation

For (1) and (2), the bo is for mapping, which is a pure kernel operation to happen later. So roundtrip is not needed here.

For (3), the bo is for either fd export or mapping, which are both pure kernel operations. So roundtrip is not needed either.

/cc @olv @ryanneph

Merge request reports