Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 539476d6 authored by Dhaval Patel's avatar Dhaval Patel
Browse files

mdss: mdp: configure secure flag for writeback block



Writeback block needs secure destination flag configured
while it is writing content protected buffer. This change
updates the flag at validate time to keep reusing the same
path for secure and non secure display.

Change-Id: Ia58276b472429731cfc23158db105a6ae0d041be
Signed-off-by: default avatarDhaval Patel <pdhaval@codeaurora.org>
parent 8c550138
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -198,6 +198,8 @@ int mdss_mdp_wfd_setup(struct mdss_mdp_wfd *wfd,
	ctl->height = layer->buffer.height;
	ctl->height = layer->buffer.height;
	ctl->roi =  (struct mdss_rect) {0, 0, ctl->width, ctl->height};
	ctl->roi =  (struct mdss_rect) {0, 0, ctl->width, ctl->height};


	ctl->is_secure = (layer->flags & MDP_LAYER_SECURE_SESSION);

	mixer->width = layer->buffer.width;
	mixer->width = layer->buffer.width;
	mixer->height = layer->buffer.height;
	mixer->height = layer->buffer.height;
	mixer->roi = (struct mdss_rect) {0, 0, mixer->width, mixer->height};
	mixer->roi = (struct mdss_rect) {0, 0, mixer->width, mixer->height};