]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/amd/display: Disable FBC for linear tiling
authorRoman Li <Roman.Li@amd.com>
Tue, 5 Sep 2017 22:23:46 +0000 (18:23 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 22:17:39 +0000 (18:17 -0400)
- Fixing text console on FBC-enabled builds

Signed-off-by: Roman Li <Roman.Li@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c

index 31592e53f504f1368eb7de8dd8e906000bb31944..37497e88a93022e0255f2beaeb3350dc3f482fb5 100644 (file)
@@ -1552,6 +1552,10 @@ static enum dc_status validate_fbc(struct dc *dc,
        if (pipe_ctx->stream->sink->link->psr_enabled)
                return DC_ERROR_UNEXPECTED;
 
+       /* Only for non-linear tiling */
+       if (pipe_ctx->plane_state->tiling_info.gfx8.array_mode == DC_ARRAY_LINEAR_GENERAL)
+               return DC_ERROR_UNEXPECTED;
+
        return DC_OK;
 }