mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-20 17:30:09 +01:00
modesetting: use surface width height for buffer allocs
This commit is contained in:
parent
1d980669e6
commit
1495dd31d6
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
struct device *device = &dev->pdev->dev;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
mode_cmd.width = fb_width;/* crtc->desired_mode->hdisplay; */
|
mode_cmd.width = surface_width;/* crtc->desired_mode->hdisplay; */
|
||||||
mode_cmd.height = fb_height;/* crtc->desired_mode->vdisplay; */
|
mode_cmd.height = surface_height;/* crtc->desired_mode->vdisplay; */
|
||||||
|
|
||||||
mode_cmd.bpp = 32;
|
mode_cmd.bpp = 32;
|
||||||
mode_cmd.pitch = mode_cmd.width * ((mode_cmd.bpp + 1) / 8);
|
mode_cmd.pitch = mode_cmd.width * ((mode_cmd.bpp + 1) / 8);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue