mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-25 10:40:12 +01:00
drm: we already worked out the pitch. multiplying by 4 is just madness..
This commit is contained in:
parent
33cb42a9f7
commit
9f19e79f95
1 changed files with 1 additions and 1 deletions
|
|
@ -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 |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue