Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5bfa4879 authored by Alex Deucher's avatar Alex Deucher Committed by Dave Airlie
Browse files

drm/radeon/kms: properly set num banks for fusion asics



Needed by userspace for 2D tiled buffer alignment

Signed-off-by: default avatarAlex Deucher <alexdeucher@gmail.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent ac89af1e
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -1933,6 +1933,10 @@ static void evergreen_gpu_init(struct radeon_device *rdev)
		rdev->config.evergreen.tile_config |= (3 << 0);
		break;
	}
	/* num banks is 8 on all fusion asics */
	if (rdev->flags & RADEON_IS_IGP)
		rdev->config.evergreen.tile_config |= 8 << 4;
	else
		rdev->config.evergreen.tile_config |=
			((mc_arb_ramcfg & NOOFBANK_MASK) >> NOOFBANK_SHIFT) << 4;
	rdev->config.evergreen.tile_config |=