Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 288082
b: refs/heads/master
c: 4e9bb47
h: refs/heads/master
v: v3
  • Loading branch information
Hai Lan authored and Jesse Barnes committed Feb 23, 2012
1 parent 3283977 commit 43d2d5f
Show file tree
Hide file tree
Showing 2 changed files with 10 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: 5ca0c34ae28344b6b4ca3036bc82f89c8db16a59
refs/heads/master: 4e9bb47bd29e02f2daaa7bdb2a8ddf977bf76f06
9 changes: 9 additions & 0 deletions trunk/drivers/gpu/drm/i915/intel_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -4680,8 +4680,17 @@ sandybridge_compute_sprite_srwm(struct drm_device *dev, int plane,

crtc = intel_get_crtc_for_plane(dev, plane);
clock = crtc->mode.clock;
if (!clock) {
*sprite_wm = 0;
return false;
}

line_time_us = (sprite_width * 1000) / clock;
if (!line_time_us) {
*sprite_wm = 0;
return false;
}

line_count = (latency_ns / line_time_us + 1000) / 1000;
line_size = sprite_width * pixel_size;

Expand Down

0 comments on commit 43d2d5f

Please sign in to comment.