drm/i915/display: Compute vrr vsync params
authorMitul Golani <mitulkumar.ajitkumar.golani@intel.com>
Mon, 10 Jun 2024 07:22:01 +0000 (12:52 +0530)
committerSuraj Kandpal <suraj.kandpal@intel.com>
Tue, 11 Jun 2024 04:28:18 +0000 (09:58 +0530)
commit5922f45329cd67e1c37c2c01513a59da82a65b96
tree7702ec1c82f2bbc1dd8c6a4b94b09aa494515d71
parent0612514db728a28982759e62da3c76444ae15281
drm/i915/display: Compute vrr vsync params

Compute vrr vsync params in case of FAVT as well instead of
only to AVT mode of operation.

--v2:
- Remove redundant computation for vrr_vsync_start
and vrr_vsync_end(Ankit).

--v3:
- vrr.enable and cmrr.enable check together is not required as both
will be true at the same point in time. (Ankit)
- Replace vrr.enable flag to cmrr.enable, mistakenly added. (Ankit)

Signed-off-by: Mitul Golani <mitulkumar.ajitkumar.golani@intel.com>
Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240610072203.24956-9-mitulkumar.ajitkumar.golani@intel.com
drivers/gpu/drm/i915/display/intel_vrr.c