mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-24 05:04:00 +08:00
drm/i915: Calculate the sprite WM based on the source width instead of the destination width
Using the destination width in the sprite WM calculations isn't correct. We should be using the source width. Note: This doesn't affect hsw since it does not support sprite scaling. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com> [danvet: Add review note from Paulo to the commit message.] Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
67ca28f30a
commit
ec4c4aa147
@ -108,7 +108,7 @@ vlv_update_plane(struct drm_plane *dplane, struct drm_framebuffer *fb,
|
|||||||
|
|
||||||
sprctl |= SP_ENABLE;
|
sprctl |= SP_ENABLE;
|
||||||
|
|
||||||
intel_update_sprite_watermarks(dev, pipe, crtc_w, pixel_size, true,
|
intel_update_sprite_watermarks(dev, pipe, src_w, pixel_size, true,
|
||||||
src_w != crtc_w || src_h != crtc_h);
|
src_w != crtc_w || src_h != crtc_h);
|
||||||
|
|
||||||
/* Sizes are 0 based */
|
/* Sizes are 0 based */
|
||||||
@ -263,7 +263,7 @@ ivb_update_plane(struct drm_plane *plane, struct drm_framebuffer *fb,
|
|||||||
if (IS_HASWELL(dev))
|
if (IS_HASWELL(dev))
|
||||||
sprctl |= SPRITE_PIPE_CSC_ENABLE;
|
sprctl |= SPRITE_PIPE_CSC_ENABLE;
|
||||||
|
|
||||||
intel_update_sprite_watermarks(dev, pipe, crtc_w, pixel_size, true,
|
intel_update_sprite_watermarks(dev, pipe, src_w, pixel_size, true,
|
||||||
src_w != crtc_w || src_h != crtc_h);
|
src_w != crtc_w || src_h != crtc_h);
|
||||||
|
|
||||||
/* Sizes are 0 based */
|
/* Sizes are 0 based */
|
||||||
@ -452,7 +452,7 @@ ilk_update_plane(struct drm_plane *plane, struct drm_framebuffer *fb,
|
|||||||
dvscntr |= DVS_TRICKLE_FEED_DISABLE; /* must disable */
|
dvscntr |= DVS_TRICKLE_FEED_DISABLE; /* must disable */
|
||||||
dvscntr |= DVS_ENABLE;
|
dvscntr |= DVS_ENABLE;
|
||||||
|
|
||||||
intel_update_sprite_watermarks(dev, pipe, crtc_w, pixel_size, true,
|
intel_update_sprite_watermarks(dev, pipe, src_w, pixel_size, true,
|
||||||
src_w != crtc_w || src_h != crtc_h);
|
src_w != crtc_w || src_h != crtc_h);
|
||||||
|
|
||||||
/* Sizes are 0 based */
|
/* Sizes are 0 based */
|
||||||
|
Loading…
Reference in New Issue
Block a user