From 634253d3f306fd04ad28fb0f647b1b58bf974550 Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Wed, 21 Oct 2020 13:03:40 +0200 Subject: 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 --- drivers/gpu/drm/nouveau/dispnv50/base507c.c | 8 ++++---- 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 }; -- cgit v1.2.3