From 9c46ff1a1eca8458b4430683484b6fca08af9d41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Mon, 24 Oct 2011 13:13:22 -0400 Subject: [PATCH] drm: Specify depth as 24 when creating the KMS FB At least intel kms rejects depth 32 now, and 24 is want we want. --- compositor/compositor-drm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compositor/compositor-drm.c b/compositor/compositor-drm.c index 0f54e3bd..94a7b894 100644 --- a/compositor/compositor-drm.c +++ b/compositor/compositor-drm.c @@ -176,7 +176,7 @@ drm_output_prepare_scanout_surface(struct wlsc_output *output_base, ret = drmModeAddFB(c->drm.fd, output->base.current->width, output->base.current->height, - 32, 32, stride, handle, &fb_id); + 24, 32, stride, handle, &fb_id); if (ret) return -1; @@ -510,7 +510,7 @@ create_output_for_connector(struct drm_compositor *ec, ret = drmModeAddFB(ec->drm.fd, output->base.current->width, output->base.current->height, - 32, 32, stride, handle, &output->fb_id[i]); + 24, 32, stride, handle, &output->fb_id[i]); if (ret) { fprintf(stderr, "failed to add fb %d: %m\n", i); return -1;