Hi, On 24 February 2018 at 00:43, Jason Ekstrand <ja...@jlekstrand.net> wrote: > On Tue, Feb 13, 2018 at 4:31 PM, Keith Packard <kei...@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 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev