Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 131757
b: refs/heads/master
c: 37df967
h: refs/heads/master
i:
  131755: c840e7c
v: v3
  • Loading branch information
Jesse Barnes authored and Dave Airlie committed Feb 25, 2009
1 parent 80fb930 commit 27e340e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7c04d1d97a8d918b7ae2ef478229862b71a65f06
refs/heads/master: 37df96736bfe6f5fd9a141d62946e1083d73e712
6 changes: 6 additions & 0 deletions trunk/drivers/gpu/drm/i915/intel_bios.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@ parse_panel_data(struct drm_i915_private *dev_priv, struct bdb_header *bdb)
panel_fixed_mode->clock = dvo_timing->clock * 10;
panel_fixed_mode->type = DRM_MODE_TYPE_PREFERRED;

/* Some VBTs have bogus h/vtotal values */
if (panel_fixed_mode->hsync_end > panel_fixed_mode->htotal)
panel_fixed_mode->htotal = panel_fixed_mode->hsync_end + 1;
if (panel_fixed_mode->vsync_end > panel_fixed_mode->vtotal)
panel_fixed_mode->vtotal = panel_fixed_mode->vsync_end + 1;

drm_mode_set_name(panel_fixed_mode);

dev_priv->vbt_mode = panel_fixed_mode;
Expand Down

0 comments on commit 27e340e

Please sign in to comment.