[Mesa-dev] [PATCH] anv: add function to get prime buffer from memory+image

2016-07-20 Thread Jonathan
I followed your suggestions and changed the prototype, although the implementation only supports basic formats --- include/vulkan/vulkan_intel.h | 17 +++ src/intel/vulkan/anv_intel.c | 49 +++ 2 files changed, 66 insertions(+) diff --git a/in

Re: [Mesa-dev] [PATCH] anv: add function to get prime buffer from memory+image

2016-07-20 Thread Rob Clark
On Wed, Jul 20, 2016 at 7:51 AM, Daniel Stone wrote: > On 20 July 2016 at 13:47, Daniel Stone wrote: >> On 19 July 2016 at 20:47, Jonathan wrote: >>> +typedef VkResult (VKAPI_PTR *PFN_vkGetDmaBufINTEL)(VkDevice device, >>> VkDeviceMemory mem, VkImage image, int *fd, uint32_t *pitch); >> >> Some

Re: [Mesa-dev] [PATCH] anv: add function to get prime buffer from memory+image

2016-07-20 Thread Daniel Stone
On 20 July 2016 at 13:47, Daniel Stone wrote: > On 19 July 2016 at 20:47, Jonathan wrote: >> +typedef VkResult (VKAPI_PTR *PFN_vkGetDmaBufINTEL)(VkDevice device, >> VkDeviceMemory mem, VkImage image, int *fd, uint32_t *pitch); > > Some things you should consider adding to this: > - multi-plane

Re: [Mesa-dev] [PATCH] anv: add function to get prime buffer from memory+image

2016-07-20 Thread Daniel Stone
Hi Jonathan, On 19 July 2016 at 20:47, Jonathan wrote: > +typedef VkResult (VKAPI_PTR *PFN_vkGetDmaBufINTEL)(VkDevice device, > VkDeviceMemory mem, VkImage image, int *fd, uint32_t *pitch); Some things you should consider adding to this: - multi-plane support for multi-buffer formats (multipl

[Mesa-dev] [PATCH] anv: add function to get prime buffer from memory+image

2016-07-19 Thread Jonathan
counterpart to the CreateDmaBufImageINTEL function, but far more convenient Signed-off-by: Jonathan --- include/vulkan/vulkan_intel.h | 9 + src/intel/vulkan/anv_intel.c | 30 ++ 2 files changed, 39 insertions(+) diff --git a/include/vulkan/vulkan_intel.h b