mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-05 19:28:03 +02:00
bring in change from drm_fb.c
This commit is contained in:
parent
07a5fbaa61
commit
c0479dad8e
1 changed files with 3 additions and 1 deletions
|
|
@ -504,7 +504,9 @@ int intelfb_probe(struct drm_device *dev, struct drm_crtc *crtc)
|
|||
info->var.vsync_len = mode->vsync_end - mode->vsync_start;
|
||||
info->var.upper_margin = mode->vtotal - mode->vsync_end;
|
||||
info->var.pixclock = 10000000 / mode->htotal * 1000 /
|
||||
mode->vtotal * 100000 / mode->vrefresh;
|
||||
mode->vtotal * 100;
|
||||
/* avoid overflow */
|
||||
info->var.pixclock = info->var.pixclock * 1000 / mode->vrefresh;
|
||||
|
||||
info->pixmap.size = 64*1024;
|
||||
info->pixmap.buf_align = 8;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue