summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/radeon/cik.c
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2013-12-22 02:18:01 +0100
committerAlex Deucher <alexander.deucher@amd.com>2013-12-23 10:03:43 -0500
commit439a1cfffe2c1a06e5a6394ccd5d18a8e89b15d3 (patch)
tree0c7fd49c562fffb10256ade2af353f3774fbaaa8 /drivers/gpu/drm/radeon/cik.c
parent9fadb352ed73edd7801a280b552d33a6040c8721 (diff)
downloadlinux-439a1cfffe2c1a06e5a6394ccd5d18a8e89b15d3.tar.gz
drm/radeon: expose render backend mask to the userspace
This will allow userspace to correctly program the PA_SC_RASTER_CONFIG register, so it can be considered a fix. Signed-off-by: Marek Olšák <marek.olsak@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/gpu/drm/radeon/cik.c')
-rw-r--r--drivers/gpu/drm/radeon/cik.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/cik.c b/drivers/gpu/drm/radeon/cik.c
index 138a77646943..e950fabd7f5e 100644
--- a/drivers/gpu/drm/radeon/cik.c
+++ b/drivers/gpu/drm/radeon/cik.c
@@ -3114,6 +3114,8 @@ static void cik_setup_rb(struct radeon_device *rdev,
mask <<= 1;
}
+ rdev->config.cik.backend_enable_mask = enabled_rbs;
+
for (i = 0; i < se_num; i++) {
cik_select_se_sh(rdev, i, 0xffffffff);
data = 0;