drm/msm/sde: cleanup core perf implementation

Current perf and crtc module supports multiple
real time and non-realtime client with different
API checks. These APIs are duplicated and checks
in perf modules are specific to real time vs non-
realtime. This patch cleans up the solution and
make it generalize to support the rsc type bw
client also. A crtc/encoder can now easily switch
between apps rsc vs display rsc by single rsc mode
flag to provide its bandwidth on certain client.

Change-Id: I9e2e09919949bff6e8ca1e5ae7b58449535a4c1a
Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
diff --git a/drivers/gpu/drm/msm/sde/sde_plane.c b/drivers/gpu/drm/msm/sde/sde_plane.c
index e144a0d..46508c7b 100644
--- a/drivers/gpu/drm/msm/sde/sde_plane.c
+++ b/drivers/gpu/drm/msm/sde/sde_plane.c
@@ -1203,7 +1203,7 @@
 		return 0;
 	pstate->pending = true;
 
-	psde->is_rt_pipe = sde_crtc_is_rt(crtc);
+	psde->is_rt_pipe = (sde_crtc_get_client_type(crtc) != NRT_CLIENT);
 	_sde_plane_set_qos_ctrl(plane, false, SDE_PLANE_QOS_PANIC_CTRL);
 
 	/* update roi config */