diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-05-27 08:18:17 -0400 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-05-28 13:43:25 -0400 |
commit | a7faf32d00529b9c501e37a31d4bf8acef4f8f59 (patch) | |
tree | ebd74db72938d99c149d74063780ac4cd7f151b1 /drivers | |
parent | a939406fda8ddc7de69ee9186356d09dc6daaa2c (diff) |
drm/i915: Include pitch in set_base debug statement.
Add the pitch that we about to write into the control register along
with the base, offset and coordinates that go into the other control
registers.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/i915/intel_display.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index e504fdb4ae31..88a1ab7c05ce 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c | |||
@@ -1396,7 +1396,8 @@ intel_pipe_set_base(struct drm_crtc *crtc, int x, int y, | |||
1396 | Start = obj_priv->gtt_offset; | 1396 | Start = obj_priv->gtt_offset; |
1397 | Offset = y * crtc->fb->pitch + x * (crtc->fb->bits_per_pixel / 8); | 1397 | Offset = y * crtc->fb->pitch + x * (crtc->fb->bits_per_pixel / 8); |
1398 | 1398 | ||
1399 | DRM_DEBUG_KMS("Writing base %08lX %08lX %d %d\n", Start, Offset, x, y); | 1399 | DRM_DEBUG_KMS("Writing base %08lX %08lX %d %d %d\n", |
1400 | Start, Offset, x, y, crtc->fb->pitch); | ||
1400 | I915_WRITE(dspstride, crtc->fb->pitch); | 1401 | I915_WRITE(dspstride, crtc->fb->pitch); |
1401 | if (IS_I965G(dev)) { | 1402 | if (IS_I965G(dev)) { |
1402 | I915_WRITE(dspbase, Offset); | 1403 | I915_WRITE(dspbase, Offset); |