mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-08 05:48:04 +02:00
Set the fb_base, so userspace applications can actually work
now instead of locking up.
This commit is contained in:
parent
bf9bd5671c
commit
d69721a14a
1 changed files with 6 additions and 0 deletions
|
|
@ -1207,6 +1207,12 @@ void intel_modeset_init(struct drm_device *dev)
|
|||
dev->mode_config.max_width = 4096;
|
||||
dev->mode_config.max_height = 4096;
|
||||
|
||||
/* set memory base */
|
||||
if (IS_I9XX(dev))
|
||||
dev->mode_config.fb_base = pci_resource_start(dev->pdev, 2);
|
||||
else
|
||||
dev->mode_config.fb_base = pci_resource_start(dev->pdev, 0);
|
||||
|
||||
if (IS_MOBILE(dev) || IS_I9XX(dev))
|
||||
num_pipe = 2;
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue