drm: Specify depth as 24 when creating the KMS FB

At least intel kms rejects depth 32 now, and 24 is want we want.
This commit is contained in:
Kristian Høgsberg
2011-10-24 13:13:22 -04:00
parent 191454e6c2
commit 9c46ff1a1e
+2 -2
View File
@@ -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;