Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 307160
b: refs/heads/master
c: 8aaa81a
h: refs/heads/master
v: v3
  • Loading branch information
Chris Wilson authored and Daniel Vetter committed Apr 16, 2012
1 parent b27ddca commit ba42b0e
Show file tree
Hide file tree
Showing 2 changed files with 4 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: f681fa235f931bcf41f6c8fa22aadde9d8833eec
refs/heads/master: 8aaa81a166d80ac9bf2813984e5b4c2503d0fe08
5 changes: 3 additions & 2 deletions trunk/drivers/gpu/drm/i915/intel_sprite.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ ilk_update_plane(struct drm_plane *plane, struct drm_framebuffer *fb,
struct drm_i915_private *dev_priv = dev->dev_private;
struct intel_plane *intel_plane = to_intel_plane(plane);
int pipe = intel_plane->pipe, pixel_size;
u32 dvscntr, dvsscale = 0;
u32 dvscntr, dvsscale;

dvscntr = I915_READ(DVSCNTR(pipe));

Expand Down Expand Up @@ -275,7 +275,8 @@ ilk_update_plane(struct drm_plane *plane, struct drm_framebuffer *fb,

intel_update_sprite_watermarks(dev, pipe, crtc_w, pixel_size);

if (crtc_w != src_w || crtc_h != src_h)
dvsscale = 0;
if (IS_GEN5(dev) || crtc_w != src_w || crtc_h != src_h)
dvsscale = DVS_SCALE_ENABLE | (src_w << 16) | src_h;

I915_WRITE(DVSSTRIDE(pipe), fb->pitches[0]);
Expand Down

0 comments on commit ba42b0e

Please sign in to comment.