Commit f60fa408 authored by Jani Nikula's avatar Jani Nikula

drm/i915: prefer INTEL_GEN() over INTEL_INFO()->gen

Prefer INTEL_GEN() over INTEL_INFO()->gen except in special
circumstances.

v2: don't change device info dump (Chris)

Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: default avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180426113521.28417-1-jani.nikula@intel.com
parent 7f961d79
...@@ -848,7 +848,7 @@ void intel_device_info_runtime_init(struct intel_device_info *info) ...@@ -848,7 +848,7 @@ void intel_device_info_runtime_init(struct intel_device_info *info)
gen9_sseu_info_init(dev_priv); gen9_sseu_info_init(dev_priv);
else if (INTEL_GEN(dev_priv) == 10) else if (INTEL_GEN(dev_priv) == 10)
gen10_sseu_info_init(dev_priv); gen10_sseu_info_init(dev_priv);
else if (INTEL_INFO(dev_priv)->gen >= 11) else if (INTEL_GEN(dev_priv) >= 11)
gen11_sseu_info_init(dev_priv); gen11_sseu_info_init(dev_priv);
/* Initialize command stream timestamp frequency */ /* Initialize command stream timestamp frequency */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment