mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 09:19:51 +00:00
drm/i915: Use intel_uncore_rmw in intel_gt_init_swizzling
Two easy opportunities to compact the code by using the existing helper. Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Suggested-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Link: https://patchwork.freedesktop.org/patch/msgid/20190621070811.7006-8-tvrtko.ursulin@linux.intel.com
This commit is contained in:
parent
500bfa380e
commit
f88709bd1c
1 changed files with 2 additions and 7 deletions
|
@ -844,17 +844,12 @@ void intel_gt_init_swizzling(struct intel_gt *gt)
|
|||
i915->mm.bit_6_swizzle_x == I915_BIT_6_SWIZZLE_NONE)
|
||||
return;
|
||||
|
||||
intel_uncore_write(uncore,
|
||||
DISP_ARB_CTL,
|
||||
intel_uncore_read(uncore, DISP_ARB_CTL) |
|
||||
DISP_TILE_SURFACE_SWIZZLING);
|
||||
intel_uncore_rmw(uncore, DISP_ARB_CTL, 0, DISP_TILE_SURFACE_SWIZZLING);
|
||||
|
||||
if (IS_GEN(i915, 5))
|
||||
return;
|
||||
|
||||
intel_uncore_write(uncore,
|
||||
TILECTL,
|
||||
intel_uncore_read(uncore, TILECTL) | TILECTL_SWZCTL);
|
||||
intel_uncore_rmw(uncore, TILECTL, 0, TILECTL_SWZCTL);
|
||||
|
||||
if (IS_GEN(i915, 6))
|
||||
intel_uncore_write(uncore,
|
||||
|
|
Loading…
Reference in a new issue