projects
/
profile
/
ivi
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33cb42a
)
drm: we already worked out the pitch. multiplying by 4 is just madness..
author
Dave Airlie
<airlied@redhat.com>
Fri, 7 Mar 2008 06:09:51 +0000
(17:09 +1100)
committer
Dave Airlie
<airlied@redhat.com>
Fri, 7 Mar 2008 06:09:51 +0000
(17:09 +1100)
linux-core/intel_fb.c
patch
|
blob
|
history
diff --git
a/linux-core/intel_fb.c
b/linux-core/intel_fb.c
index
931bc1b
..
52ff3a6
100644
(file)
--- 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 |