Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 156529
b: refs/heads/master
c: f360132
h: refs/heads/master
i:
  156527: a0923ee
v: v3
  • Loading branch information
Jesse Barnes authored and Eric Anholt committed Jul 29, 2009
1 parent bb45f0e commit a1101b0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 67941da28d59cca6817d35823fcb1e3e4eed030e
refs/heads/master: f360132626b11d0dc60814033873ca0e3111677c
9 changes: 7 additions & 2 deletions trunk/drivers/gpu/drm/i915/intel_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -2026,6 +2026,9 @@ static int intel_get_fifo_size(struct drm_device *dev, int plane)
size = ((dsparb >> DSPARB_BEND_SHIFT) & 0x1ff) -
(dsparb & 0x1ff);
size >>= 1; /* Convert to cachelines */
} else if (IS_845G(dev)) {
size = dsparb & 0x7f;
size >>= 2; /* Convert to cachelines */
} else {
size = dsparb & 0x7f;
size >>= 1; /* Convert to cachelines */
Expand Down Expand Up @@ -2125,14 +2128,16 @@ static void i830_update_wm(struct drm_device *dev, int planea_clock,
int pixel_size)
{
struct drm_i915_private *dev_priv = dev->dev_private;
uint32_t fwater_lo = I915_READ(FW_BLC) & MM_FIFO_WATERMARK;
uint32_t fwater_lo = I915_READ(FW_BLC) & ~0xfff;
int planea_wm;

i830_wm_info.fifo_size = intel_get_fifo_size(dev, 0);

planea_wm = intel_calculate_wm(planea_clock, &i830_wm_info,
pixel_size, latency_ns);
fwater_lo = fwater_lo | planea_wm;
fwater_lo |= (3<<8) | planea_wm;

DRM_DEBUG("Setting FIFO watermarks - A: %d\n", planea_wm);

I915_WRITE(FW_BLC, fwater_lo);
}
Expand Down

0 comments on commit a1101b0

Please sign in to comment.