mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-24 12:15:35 +07:00
drm/i915: Fix read back of plane stride register
According to the specifications bit 6 is actually valid in the stride register. Cc: Jesse Barnes <jbarnes@virtuousgeek.org> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Rafael Barbalho <rafael.barbalho@intel.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
2ce147f36d
commit
026b96e293
@ -6211,7 +6211,7 @@ static void i9xx_get_plane_config(struct intel_crtc *crtc,
|
||||
crtc->base.primary->fb->height = ((val >> 0) & 0xfff) + 1;
|
||||
|
||||
val = I915_READ(DSPSTRIDE(pipe));
|
||||
crtc->base.primary->fb->pitches[0] = val & 0xffffff80;
|
||||
crtc->base.primary->fb->pitches[0] = val & 0xffffffc0;
|
||||
|
||||
aligned_height = intel_align_height(dev, crtc->base.primary->fb->height,
|
||||
plane_config->tiled);
|
||||
@ -7247,7 +7247,7 @@ static void ironlake_get_plane_config(struct intel_crtc *crtc,
|
||||
crtc->base.primary->fb->height = ((val >> 0) & 0xfff) + 1;
|
||||
|
||||
val = I915_READ(DSPSTRIDE(pipe));
|
||||
crtc->base.primary->fb->pitches[0] = val & 0xffffff80;
|
||||
crtc->base.primary->fb->pitches[0] = val & 0xffffffc0;
|
||||
|
||||
aligned_height = intel_align_height(dev, crtc->base.primary->fb->height,
|
||||
plane_config->tiled);
|
||||
|
Loading…
Reference in New Issue
Block a user