drm/i915/display: Compute has_drrs after compute has_psr
authorJosé Roberto de Souza <jose.souza@intel.com>
Tue, 25 Aug 2020 17:13:29 +0000 (10:13 -0700)
committerJosé Roberto de Souza <jose.souza@intel.com>
Thu, 27 Aug 2020 16:47:48 +0000 (09:47 -0700)
commitbe2dd718ed4ad302708464d6f60a228a7eb7e344
treee742404b0d7f646bcc0327a5e148b0986e229c88
parent97e48c1d60a7237f0e7fb0a33d2a8bc53a23db93
drm/i915/display: Compute has_drrs after compute has_psr

DRRS and PSR can't be enable together, so giving preference to PSR
as it allows more power-savings by complete shutting down display,
so to guarantee this, it should compute DRRS state after compute PSR.

Cc: Srinivas K <srinivasx.k@intel.com>
Cc: Hariom Pandey <hariom.pandey@intel.com>
Reviewed-by: Anshuman Gupta <anshuman.gupta@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200825171331.17971-1-jose.souza@intel.com
drivers/gpu/drm/i915/display/intel_dp.c