aboutsummaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2008-06-05 11:24:57 +1000
committerDave Airlie <airlied@redhat.com>2008-06-05 11:24:57 +1000
commit1495dd31d60e588743f20a9e470c8b0045313e7c (patch)
tree58163fc96b6db2ab3ab831badd538c35b7b058e6 /linux-core
parent1d980669e6d448e15c61507d81552c532b93bcd8 (diff)
modesetting: use surface width height for buffer allocs
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/intel_fb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-core/intel_fb.c b/linux-core/intel_fb.c
index a87672d8..ae290f3c 100644
--- a/linux-core/intel_fb.c
+++ b/linux-core/intel_fb.c
@@ -557,8 +557,8 @@ int intelfb_create(struct drm_device *dev, uint32_t fb_width, uint32_t fb_height
struct device *device = &dev->pdev->dev;
int ret;
- mode_cmd.width = fb_width;/* crtc->desired_mode->hdisplay; */
- mode_cmd.height = fb_height;/* crtc->desired_mode->vdisplay; */
+ mode_cmd.width = surface_width;/* crtc->desired_mode->hdisplay; */
+ mode_cmd.height = surface_height;/* crtc->desired_mode->vdisplay; */
mode_cmd.bpp = 32;
mode_cmd.pitch = mode_cmd.width * ((mode_cmd.bpp + 1) / 8);