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

Commit 323b0a82 authored by Lucas De Marchi's avatar Lucas De Marchi
Browse files

drm/i915: reorder if chain to have last gen first



Reorder if/else so we check for gen >= 11 first, similar to most of
other checks in the driver.

Signed-off-by: default avatarLucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190404230426.15837-3-lucas.demarchi@intel.com
parent fcfec1fc
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -4360,15 +4360,16 @@ skl_allocate_pipe_ddb(struct intel_crtc_state *cstate,
		return 0;
	}

	if (INTEL_GEN(dev_priv) < 11)
	if (INTEL_GEN(dev_priv) >= 11)
		total_data_rate =
			icl_get_total_relative_data_rate(cstate,
							 plane_data_rate);
	else
		total_data_rate =
			skl_get_total_relative_data_rate(cstate,
							 plane_data_rate,
							 uv_plane_data_rate);
	else
		total_data_rate =
			icl_get_total_relative_data_rate(cstate,
							 plane_data_rate);


	skl_ddb_get_pipe_allocation_limits(dev_priv, cstate, total_data_rate,
					   ddb, alloc, &num_active);