diff options
author | Dave Airlie <airlied@redhat.com> | 2016-11-29 23:28:20 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2016-11-29 23:28:20 -0500 |
commit | a90f58311f48f510ea63cd2db2e32f74712c43f3 (patch) | |
tree | a7d64dfe8066585e23ffe88e30ea2ac59eb5322e /drivers/gpu/drm/i915/intel_sprite.c | |
parent | 35838b470ab592071087a46804d373c5571dc032 (diff) | |
parent | 389f78b361fcdc52a9dbb5382c3922d80b52ed9f (diff) |
Merge tag 'drm-misc-next-2016-11-29' of git://anongit.freedesktop.org/git/drm-misc into drm-next
Big thing is that drm-misc is now officially a group maintainer/committer
model thing, with MAINTAINERS suitably updated. Otherwise just the usual
pile of misc things all over, nothing that stands out this time around.
* tag 'drm-misc-next-2016-11-29' of git://anongit.freedesktop.org/git/drm-misc: (33 commits)
drm: Introduce drm_framebuffer_assign()
drm/bridge: adv7511: Enable the audio data and clock pads on adv7533
drm/bridge: adv7511: Add Audio support
drm/edid: Consider alternate cea timings to be the same VIC
drm/atomic: Constify drm_atomic_crtc_needs_modeset()
drm: bridge: dw-hdmi: add ASoC dependency
drm: Fix shift operations for drm_fb_helper::drm_target_preferred()
drm: Avoid NULL dereference for DRM_LEGACY debug message
drm: Use u64_to_user_ptr() helper for blob ioctls
drm: Fix conflicting macro parameter in drm_mm_for_each_node_in_range()
drm: Fixup kernel doc for driver->gem_create_object
drm/hisilicon/hibmc: mark PM functions __maybe_unused
drm/hisilicon/hibmc: Checking for NULL instead of IS_ERR()
drm: bridge: add DesignWare HDMI I2S audio support
drm: Check against color expansion in drm_mm_reserve_node()
drm: Define drm_mm_for_each_node_in_range()
drm/doc: Fix links in drm_property.c
MAINTAINERS: Add link to drm-misc documentation
vgaarb: use valid dev pointer in vgaarb_info()
drm/atomic: Unconfuse the old_state mess in commmit_tail
...
Diffstat (limited to 'drivers/gpu/drm/i915/intel_sprite.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_sprite.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/gpu/drm/i915/intel_sprite.c b/drivers/gpu/drm/i915/intel_sprite.c index c2b629c922e7..8f131a08d440 100644 --- a/drivers/gpu/drm/i915/intel_sprite.c +++ b/drivers/gpu/drm/i915/intel_sprite.c | |||
@@ -224,7 +224,7 @@ skl_update_plane(struct drm_plane *drm_plane, | |||
224 | PLANE_CTL_PIPE_CSC_ENABLE; | 224 | PLANE_CTL_PIPE_CSC_ENABLE; |
225 | 225 | ||
226 | plane_ctl |= skl_plane_ctl_format(fb->pixel_format); | 226 | plane_ctl |= skl_plane_ctl_format(fb->pixel_format); |
227 | plane_ctl |= skl_plane_ctl_tiling(fb->modifier[0]); | 227 | plane_ctl |= skl_plane_ctl_tiling(fb->modifier); |
228 | 228 | ||
229 | plane_ctl |= skl_plane_ctl_rotation(rotation); | 229 | plane_ctl |= skl_plane_ctl_rotation(rotation); |
230 | 230 | ||
@@ -406,7 +406,7 @@ vlv_update_plane(struct drm_plane *dplane, | |||
406 | */ | 406 | */ |
407 | sprctl |= SP_GAMMA_ENABLE; | 407 | sprctl |= SP_GAMMA_ENABLE; |
408 | 408 | ||
409 | if (fb->modifier[0] == I915_FORMAT_MOD_X_TILED) | 409 | if (fb->modifier == I915_FORMAT_MOD_X_TILED) |
410 | sprctl |= SP_TILED; | 410 | sprctl |= SP_TILED; |
411 | 411 | ||
412 | if (rotation & DRM_ROTATE_180) | 412 | if (rotation & DRM_ROTATE_180) |
@@ -448,7 +448,7 @@ vlv_update_plane(struct drm_plane *dplane, | |||
448 | I915_WRITE(SPSTRIDE(pipe, plane), fb->pitches[0]); | 448 | I915_WRITE(SPSTRIDE(pipe, plane), fb->pitches[0]); |
449 | I915_WRITE(SPPOS(pipe, plane), (crtc_y << 16) | crtc_x); | 449 | I915_WRITE(SPPOS(pipe, plane), (crtc_y << 16) | crtc_x); |
450 | 450 | ||
451 | if (fb->modifier[0] == I915_FORMAT_MOD_X_TILED) | 451 | if (fb->modifier == I915_FORMAT_MOD_X_TILED) |
452 | I915_WRITE(SPTILEOFF(pipe, plane), (y << 16) | x); | 452 | I915_WRITE(SPTILEOFF(pipe, plane), (y << 16) | x); |
453 | else | 453 | else |
454 | I915_WRITE(SPLINOFF(pipe, plane), linear_offset); | 454 | I915_WRITE(SPLINOFF(pipe, plane), linear_offset); |
@@ -531,7 +531,7 @@ ivb_update_plane(struct drm_plane *plane, | |||
531 | */ | 531 | */ |
532 | sprctl |= SPRITE_GAMMA_ENABLE; | 532 | sprctl |= SPRITE_GAMMA_ENABLE; |
533 | 533 | ||
534 | if (fb->modifier[0] == I915_FORMAT_MOD_X_TILED) | 534 | if (fb->modifier == I915_FORMAT_MOD_X_TILED) |
535 | sprctl |= SPRITE_TILED; | 535 | sprctl |= SPRITE_TILED; |
536 | 536 | ||
537 | if (rotation & DRM_ROTATE_180) | 537 | if (rotation & DRM_ROTATE_180) |
@@ -584,7 +584,7 @@ ivb_update_plane(struct drm_plane *plane, | |||
584 | * register */ | 584 | * register */ |
585 | if (IS_HASWELL(dev_priv) || IS_BROADWELL(dev_priv)) | 585 | if (IS_HASWELL(dev_priv) || IS_BROADWELL(dev_priv)) |
586 | I915_WRITE(SPROFFSET(pipe), (y << 16) | x); | 586 | I915_WRITE(SPROFFSET(pipe), (y << 16) | x); |
587 | else if (fb->modifier[0] == I915_FORMAT_MOD_X_TILED) | 587 | else if (fb->modifier == I915_FORMAT_MOD_X_TILED) |
588 | I915_WRITE(SPRTILEOFF(pipe), (y << 16) | x); | 588 | I915_WRITE(SPRTILEOFF(pipe), (y << 16) | x); |
589 | else | 589 | else |
590 | I915_WRITE(SPRLINOFF(pipe), linear_offset); | 590 | I915_WRITE(SPRLINOFF(pipe), linear_offset); |
@@ -669,7 +669,7 @@ ilk_update_plane(struct drm_plane *plane, | |||
669 | */ | 669 | */ |
670 | dvscntr |= DVS_GAMMA_ENABLE; | 670 | dvscntr |= DVS_GAMMA_ENABLE; |
671 | 671 | ||
672 | if (fb->modifier[0] == I915_FORMAT_MOD_X_TILED) | 672 | if (fb->modifier == I915_FORMAT_MOD_X_TILED) |
673 | dvscntr |= DVS_TILED; | 673 | dvscntr |= DVS_TILED; |
674 | 674 | ||
675 | if (rotation & DRM_ROTATE_180) | 675 | if (rotation & DRM_ROTATE_180) |
@@ -712,7 +712,7 @@ ilk_update_plane(struct drm_plane *plane, | |||
712 | I915_WRITE(DVSSTRIDE(pipe), fb->pitches[0]); | 712 | I915_WRITE(DVSSTRIDE(pipe), fb->pitches[0]); |
713 | I915_WRITE(DVSPOS(pipe), (crtc_y << 16) | crtc_x); | 713 | I915_WRITE(DVSPOS(pipe), (crtc_y << 16) | crtc_x); |
714 | 714 | ||
715 | if (fb->modifier[0] == I915_FORMAT_MOD_X_TILED) | 715 | if (fb->modifier == I915_FORMAT_MOD_X_TILED) |
716 | I915_WRITE(DVSTILEOFF(pipe), (y << 16) | x); | 716 | I915_WRITE(DVSTILEOFF(pipe), (y << 16) | x); |
717 | else | 717 | else |
718 | I915_WRITE(DVSLINOFF(pipe), linear_offset); | 718 | I915_WRITE(DVSLINOFF(pipe), linear_offset); |