disp: msm: sde: add handoff implementation for color processing features

Add handoff implementation for color processing features when switching
from primary VM to trusted VM.

Change-Id: I9c3a168f70f3981e912bf37533f212880ab30924
Signed-off-by: Ping Li <pingli@codeaurora.org>
这个提交包含在:
Ping Li
2020-07-08 15:20:14 -07:00
提交者 Gerrit - the friendly Code Review server
父节点 e24cd76a78
当前提交 98821c4384
修改 4 个文件,包含 98 行新增2 行删除

查看文件

@@ -46,6 +46,7 @@
#include "sde_encoder.h"
#include "sde_plane.h"
#include "sde_crtc.h"
#include "sde_color_processing.h"
#include "sde_reg_dma.h"
#include "sde_connector.h"
#include "sde_vm.h"
@@ -1321,6 +1322,7 @@ int sde_kms_vm_primary_post_commit(struct sde_kms *sde_kms,
{
struct sde_vm_ops *vm_ops;
struct sde_crtc_state *cstate;
struct drm_crtc *crtc;
enum sde_crtc_vm_req vm_req;
int rc = 0;
@@ -1329,6 +1331,7 @@ int sde_kms_vm_primary_post_commit(struct sde_kms *sde_kms,
vm_ops = &sde_kms->vm->vm_ops;
crtc = state->crtcs[0].ptr;
cstate = to_sde_crtc_state(state->crtcs[0].new_state);
vm_req = sde_crtc_get_property(cstate, CRTC_PROP_VM_REQ_STATE);
@@ -1338,6 +1341,9 @@ int sde_kms_vm_primary_post_commit(struct sde_kms *sde_kms,
/* handle SDE pre-release */
sde_kms_vm_pre_release(sde_kms, state);
/* properly handoff color processing features */
sde_cp_crtc_vm_primary_handoff(crtc);
/* program the current drm mode info to scratch reg */
_sde_kms_program_mode_info(sde_kms);