diff options
author | Dave Airlie <airlied@redhat.com> | 2008-03-07 17:09:51 +1100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2008-03-07 17:09:51 +1100 |
commit | 9f19e79f955281b9de393219e4ad9835ffe29c49 (patch) | |
tree | 6b0cafa7a49cb3112fead4d368c41c5a7d41f9d6 | |
parent | 33cb42a9f7c7c4f4dd91756af55de7352944efa4 (diff) |
drm: we already worked out the pitch. multiplying by 4 is just madness..
-rw-r--r-- | linux-core/intel_fb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/intel_fb.c b/linux-core/intel_fb.c index 931bc1b6..52ff3a67 100644 --- a/linux-core/intel_fb.c +++ b/linux-core/intel_fb.c @@ -589,7 +589,7 @@ int intelfb_probe(struct drm_device *dev, struct drm_crtc *crtc) fb->bits_per_pixel = 32; fb->pitch = fb->width * ((fb->bits_per_pixel + 1) / 8); fb->depth = 24; - ret = drm_buffer_object_create(dev, fb->pitch * fb->height * 4, + ret = drm_buffer_object_create(dev, fb->pitch * fb->height, drm_bo_type_kernel, DRM_BO_FLAG_READ | DRM_BO_FLAG_WRITE | |