Re: How to map depth=30 fb to XBGR instead of XRGB?

2018-01-09 Thread Daniel Vetter
On Tue, Jan 09, 2018 at 03:28:23PM +, Chris Wilson wrote: > Quoting Ville Syrjälä (2018-01-09 15:19:06) > > On Sun, Dec 31, 2017 at 01:03:39AM -0500, Ilia Mirkin wrote: > > > NVIDIA hardware, prior to Kepler, only supports XBGR2101010. However > > > drmAddFB with depth = 30 will use the

Re: How to map depth=30 fb to XBGR instead of XRGB?

2018-01-09 Thread Daniel Vetter
On Tue, Jan 09, 2018 at 05:19:06PM +0200, Ville Syrjälä wrote: > On Sun, Dec 31, 2017 at 01:03:39AM -0500, Ilia Mirkin wrote: > > NVIDIA hardware, prior to Kepler, only supports XBGR2101010. However > > drmAddFB with depth = 30 will use the mapping in > > drm_mode_legacy_fb_format and pick the

Re: How to map depth=30 fb to XBGR instead of XRGB?

2018-01-09 Thread Chris Wilson
Quoting Ville Syrjälä (2018-01-09 15:19:06) > On Sun, Dec 31, 2017 at 01:03:39AM -0500, Ilia Mirkin wrote: > > NVIDIA hardware, prior to Kepler, only supports XBGR2101010. However > > drmAddFB with depth = 30 will use the mapping in > > drm_mode_legacy_fb_format and pick the XRGB version of the

Re: How to map depth=30 fb to XBGR instead of XRGB?

2018-01-09 Thread Ville Syrjälä
On Sun, Dec 31, 2017 at 01:03:39AM -0500, Ilia Mirkin wrote: > NVIDIA hardware, prior to Kepler, only supports XBGR2101010. However > drmAddFB with depth = 30 will use the mapping in > drm_mode_legacy_fb_format and pick the XRGB version of the format. > > One solution is to tell userspace "stop

How to map depth=30 fb to XBGR instead of XRGB?

2017-12-30 Thread Ilia Mirkin
NVIDIA hardware, prior to Kepler, only supports XBGR2101010. However drmAddFB with depth = 30 will use the mapping in drm_mode_legacy_fb_format and pick the XRGB version of the format. One solution is to tell userspace "stop using addfb, move to addfb2". However I'm hoping that there's some sort