drm/radeon: fill in rb backend map on evergreen/ni.
authorDave Airlie <airlied@redhat.com>
Tue, 9 Jan 2018 03:43:03 +0000 (13:43 +1000)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 16 Jan 2018 20:35:28 +0000 (15:35 -0500)
This looks to have never gotten filled in, and it seems to
 trigger a bug in mesa.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reported-by: Roland Scheidegger <sroland@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/evergreen.c
drivers/gpu/drm/radeon/ni.c

index 24fe66c..5712d63 100644 (file)
@@ -3513,6 +3513,7 @@ static void evergreen_gpu_init(struct radeon_device *rdev)
                tmp = r6xx_remap_render_backend(rdev, tmp, rdev->config.evergreen.max_backends,
                                                EVERGREEN_MAX_BACKENDS, disabled_rb_mask);
        }
+       rdev->config.evergreen.backend_map = tmp;
        WREG32(GB_BACKEND_MAP, tmp);
 
        WREG32(CGTS_SYS_TCC_DISABLE, 0);
index 9eccd0c..381b025 100644 (file)
@@ -1148,6 +1148,7 @@ static void cayman_gpu_init(struct radeon_device *rdev)
                                                rdev->config.cayman.max_shader_engines,
                                                CAYMAN_MAX_BACKENDS, disabled_rb_mask);
        }
+       rdev->config.cayman.backend_map = tmp;
        WREG32(GB_BACKEND_MAP, tmp);
 
        cgts_tcc_disable = 0xffff0000;