Skip to content

venus: cache ahb backed buffer memory type bits requirement

Yiwei Zhang requested to merge zzyiwei/mesa:cache-memtype into main

To properly init buffer memory requirement for AHB, memory type bits from dma_buf fd properties need to be masked. However, creating a test AHB at buffer creation is too costy. This patch caches the ahb backed buffer memory type bits at device creation time if the app is requesting AHB extension.

Cc: 21.2 mesa-stable

/cc @olv @ryanneph

Merge request reports