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

Rob Clark robdclark at gmail.com
Wed Jul 20 11:57:32 UTC 2016


On Wed, Jul 20, 2016 at 7:51 AM, Daniel Stone <daniel at fooishbar.org> wrote:
> On 20 July 2016 at 13:47, Daniel Stone <daniel at fooishbar.org> wrote:
>> On 19 July 2016 at 20:47, Jonathan <jonathan at marek.ca> 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 (multiple fds,
>> multiple pitches, per-plane offset parameter)
>>   - an out parameter for format, using the DRM FourCC format codes
>>   - out parameters for a DRM modifier per-plane, to account for tiling
>> etc (and no longer calling anv_gem_set_tiling)
>
> Oops, hit send too early. Being able to export a VkFence to a kernel
> fence fd, as a companion, would also be incredibly helpful.
>

I wonder if android has already defined some extensions for this?
(Well I guess they must have already, no idea if public..)

BR,
-R


More information about the mesa-dev mailing list