Skip to content

venus: suballocate based on renderer memory type

Yiwei Zhang requested to merge zzyiwei/mesa:sub-more into main

Given no guaranteed cache management info from the renderer, the driver removes the host bits from any memory type without CACHED bit.

When it comes to suballocate, the driver needs to decide based on renderer memory type to avoid exhausting KVM_USER_MEM_SLOTS if the renderer holds a fd per device memory object for guest mappable memory.

In addition, the renderer memory type needs to be used on the entire pool alloc path to ensure valid blob flags, which is fine that becomes mappable since we reject the app mapping request based on the exposed memory types.

/cc @olv @ryanneph

Merge request reports