[Mesa-dev] [PATCH 01/21] vulkan: Add KHR_display extension using DRM

Daniel Stone daniel at fooishbar.org
Sat Feb 24 09:43:37 UTC 2018


Hi,

On 24 February 2018 at 00:43, Jason Ekstrand <jason at jlekstrand.net> wrote:
> On Tue, Feb 13, 2018 at 4:31 PM, Keith Packard <keithp at keithp.com> wrote:
>> +   image->chain = chain;
>> +   image->state = wsi_image_idle;
>> +   image->fb_id = 0;
>> +
>> +   /* XXX extract depth and bpp from image somehow */
>
> You have the format in create_info.  We could add some generic VkFormat
> introspection or we can just handle the 2-4 cases we care about directly.

Or better, just use drmModeAddFB2 and pass the format directly. That
landed back in 3.2 or so, and I don't think there's anyone trying to
use Vulkan on a kernel from 2011.

Cheers,
Daniel


More information about the dri-devel mailing list