Re: [PATCH] drm/vkms: Unset preferred_depth

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Oct 20, 2020 at 10:42 AM Simon Ser <contact@xxxxxxxxxxx> wrote:
>
> On Tuesday, October 20, 2020 10:35 AM, Daniel Vetter <daniel.vetter@xxxxxxxx> wrote:
>
> > There's a confusion between the preferred_depth uapi and the generic
> > fbdev helpers. Former wants depth, latter wants bpp, and for XRGB8888
> > they don't match. Which hit me with vkms, which wants that.
> >
> > All other drivers setting this and using the generic fbdev helpers use
> > 16, where both numbers match, for RGB565.
>
> Not quite: grepping reveals a majority of 24 (as shown in drmdb). A few
> drivers set 16 (udl, cirrus), and hisilicon sets 32.

If I haven't screwed up my grepping, those drivers that set 24 don't
use the generic fbdev emulation. Which is the broken combination.

hisilicon setting 32 is just plain wrong, and it's indeed using fbdev
emulation :-/ I also noticed that mga200 can end up setting 32bit.

So I guess I've not been terribly well awake when doing my grepping ...

> > Since fixing this is a bit involved (I think for atomic drivers we
> > should just compute this all internally from the format list of the
> > first primary plane) paper over the issue in vkms by using defaults
> > everywhere. Then userspace will pick XRGB8888, and fbdev helpers will
> > do the same, and we have what we want.
> >
> > Reported-by: Simon Ser contact@xxxxxxxxxxx
> > Cc: Simon Ser contact@xxxxxxxxxxx
> > Signed-off-by: Daniel Vetter daniel.vetter@xxxxxxxxx
> > Cc: Rodrigo Siqueira rodrigosiqueiramelo@xxxxxxxxx
> > Cc: Melissa Wen melissa.srw@xxxxxxxxx
> > Cc: Haneen Mohammed hamohammed.sa@xxxxxxxxx
> > Cc: Daniel Vetter daniel@xxxxxxxx
>
> With the commit message clarified:
>
> Reviewed-by: Simon Ser <contact@xxxxxxxxxxx>
>


-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel



[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux