On Sat 02 Sep 2017, Jason Ekstrand wrote: > On Sat, Sep 2, 2017 at 1:17 AM, Chad Versace <[1]chadvers...@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. _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev