diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2020-10-21 13:03:40 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2024-01-08 14:01:48 +0100 |
commit | 634253d3f306fd04ad28fb0f647b1b58bf974550 (patch) | |
tree | 09f435e10be4fb3545af208f4eaf1935d88c9ee4 /drivers | |
parent | 47f7453eb8f300a1c17bd87688be49f91c0da0c6 (diff) |
drm/nouveau: Sort formats by preference
C8 doesn't sound great, neither does the 16bpp formats. So put them
down a bit.
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/nouveau/dispnv50/base507c.c | 8 | ||||
-rw-r--r-- | drivers/gpu/drm/nouveau/dispnv50/base917c.c | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpu/drm/nouveau/dispnv50/base507c.c b/drivers/gpu/drm/nouveau/dispnv50/base507c.c index 70c62b861276..5b2e4025cd7a 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/base507c.c +++ b/drivers/gpu/drm/nouveau/dispnv50/base507c.c @@ -266,10 +266,6 @@ base507c_acquire(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw, const u32 base507c_format[] = { - DRM_FORMAT_C8, - DRM_FORMAT_RGB565, - DRM_FORMAT_XRGB1555, - DRM_FORMAT_ARGB1555, DRM_FORMAT_XRGB8888, DRM_FORMAT_ARGB8888, DRM_FORMAT_XBGR2101010, @@ -278,6 +274,10 @@ base507c_format[] = { DRM_FORMAT_ABGR8888, DRM_FORMAT_XBGR16161616F, DRM_FORMAT_ABGR16161616F, + DRM_FORMAT_RGB565, + DRM_FORMAT_XRGB1555, + DRM_FORMAT_ARGB1555, + DRM_FORMAT_C8, 0 }; diff --git a/drivers/gpu/drm/nouveau/dispnv50/base917c.c b/drivers/gpu/drm/nouveau/dispnv50/base917c.c index ca260509a4f1..5b51e76395fd 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/base917c.c +++ b/drivers/gpu/drm/nouveau/dispnv50/base917c.c @@ -24,7 +24,6 @@ static const u32 base917c_format[] = { - DRM_FORMAT_C8, DRM_FORMAT_XRGB8888, DRM_FORMAT_ARGB8888, DRM_FORMAT_RGB565, @@ -38,6 +37,7 @@ base917c_format[] = { DRM_FORMAT_ARGB2101010, DRM_FORMAT_XBGR16161616F, DRM_FORMAT_ABGR16161616F, + DRM_FORMAT_C8, 0 }; |