OSDN Git Service

drm/amd/display: Set static screen register for stoney/carrizo
authorBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Fri, 30 Jun 2017 19:19:55 +0000 (15:19 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 22:08:28 +0000 (18:08 -0400)
-Set CRTC_STATIC_SCREEN_EVENT for stoney/carrizo for FBC implementation
-Code is currently guarded with "ENABLE_FBC" compile time flag

Signed-off-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Reviewed-by: Roman Li <Roman.Li@amd.com>
Acked-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 72d5f75..8778af7 100644 (file)
@@ -1395,6 +1395,10 @@ static void set_static_screen_control(struct pipe_ctx **pipe_ctx,
        if (events->cursor_update)
                value |= 0x2;
 
+#ifdef ENABLE_FBC
+       value |= 0x84;
+#endif
+
        for (i = 0; i < num_pipes; i++)
                pipe_ctx[i]->tg->funcs->
                        set_static_screen_control(pipe_ctx[i]->tg, value);