[Mesa-dev] [PATCH] anv/allocator: Add a BO cache
Chad Versace
chadversary at chromium.org
Wed Apr 12 22:20:47 UTC 2017
On Mon 10 Apr 2017, Jason Ekstrand wrote:
> This cache allows us to easily ensure that we have a unique anv_bo for
> each gem handle. We'll need this in order to support multiple-import of
> memory objects and semaphores.
>
> v2 (Jason Ekstrand):
> - Reject BO imports if the size doesn't match the prime fd size as
> reported by lseek().
>
> v3 (Jason Ekstrand):
> - Get rid of the alloc parameter to all of the calls and just use
> device->alloc instead.
> - Allocate the correct amount of memory for the anv_cached_bo structure.
>
> Cc: Chad Versace <chadversary at chromium.org>
> ---
> src/intel/vulkan/anv_allocator.c | 263 +++++++++++++++++++++++++++++++++++++++
> src/intel/vulkan/anv_private.h | 21 ++++
> 2 files changed, 284 insertions(+)
Reviewed-by: Chad Versace <chadversary at chromium.org>
More information about the mesa-dev
mailing list