[Mesa-dev] [PATCH 19/23] anv: Add flag NO_CLOSE_FD for anv_bo_cache_import()

Chad Versace chadversary at chromium.org
Mon Sep 11 23:27:29 UTC 2017


On Sat 02 Sep 2017, Jason Ekstrand wrote:
> On Sat, Sep 2, 2017 at 1:17 AM, Chad Versace <[1]chadversary at chromium.org>
> wrote:
> 
>     This patch adds a flag param to anv_bo_cache_import() and defines
>     exactly one flag, ANV_BO_CACHE_IMPORT_NO_CLOSE_FD. If set, the function
>     will not close the fd.
> 
> 
> The other option (which I think I like better) would be to move the call to
> close(fd) to the two callers of anv_bo_cache_import.  That puts Vulkan
> extension API details with the extension implementation and not in the bo
> cache.

I like that option better too.


More information about the mesa-dev mailing list