drm/amd/display: Use context parameters to enable FBC

Submitted by Li, Roman on Feb. 4, 2019, 3:57 p.m.

Details

Message ID BL0PR12MB282020557F9899C8C2F37328896D0@BL0PR12MB2820.namprd12.prod.outlook.com
State New
Headers show
Series "drm/amd/display: Use context parameters to enable FBC" ( rev: 3 ) in AMD X.Org drivers

Not browsing as part of any series.

Commit Message

Li, Roman Feb. 4, 2019, 3:57 p.m.
Reviewed-by: Roman Li <Roman.Li@amd.com>


-----Original Message-----
From: amd-gfx <amd-gfx-bounces@lists.freedesktop.org> On Behalf Of S, Shirish

Sent: Monday, February 4, 2019 4:20 AM
To: Li, Sun peng (Leo) <Sunpeng.Li@amd.com>; Wu, Hersen <hersenxs.wu@amd.com>; Wentland, Harry <Harry.Wentland@amd.com>
Cc: amd-gfx@lists.freedesktop.org; S, Shirish <Shirish.S@amd.com>
Subject: [PATCH] drm/amd/display: Use context parameters to enable FBC

[What]
FBC fails to get enabled when switched between LINEAR(console/VT) and non-LINEAR(GUI) based rendering due to default value of tiling info stored in the current_state which is used for deciding whether or not to turn FBC on or off.

[How]
Use context structure's tiling information which is coherant with the screen updates.

Signed-off-by: Shirish S <shirish.s@amd.com>

---
 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
2.7.4

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Patch hide | download patch | download mbox

diff --git a/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c
index db0ef41..fd7cd5b 100644
--- a/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c
+++ b/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c
@@ -2535,7 +2535,7 @@  static void dce110_apply_ctx_for_surface(
 	}
 
 	if (dc->fbc_compressor)
-		enable_fbc(dc, dc->current_state);
+		enable_fbc(dc, context);
 }
 
 static void dce110_power_down_fe(struct dc *dc, struct pipe_ctx *pipe_ctx)