From: Roman Li Date: Thu, 17 Aug 2017 20:14:45 +0000 (-0400) Subject: drm/amd/display: Fix FBC disable for stereo X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=57d972d4927581d027007c92b57b843c186128d4;p=openwrt%2Fstaging%2Fblogic.git drm/amd/display: Fix FBC disable for stereo Removed FBC disable from dc_enable_stereo(). It should be implemented in stereo_setup callback, which is not implemented yet. Otherwise it always disable FBC regardless if stereo supported or not. Signed-off-by: Roman Li Reviewed-by: Bhawanpreet Lakha Acked-by: Harry Wentland Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c index 8a6bd2917799..035c44e0e7d2 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc.c @@ -881,10 +881,6 @@ bool dc_enable_stereo( struct pipe_ctx *pipe; struct dc *core_dc = dc; -#ifdef ENABLE_FBC - struct compressor *fbc_compressor = core_dc->fbc_compressor; -#endif - for (i = 0; i < MAX_PIPES; i++) { if (context != NULL) pipe = &context->res_ctx.pipe_ctx[i]; @@ -897,13 +893,6 @@ bool dc_enable_stereo( } } -#ifdef ENABLE_FBC - if (fbc_compressor != NULL && - fbc_compressor->funcs->is_fbc_enabled_in_hw(core_dc->fbc_compressor, - NULL)) - fbc_compressor->funcs->disable_fbc(fbc_compressor); - -#endif return ret; }