drm/i915: Reorder gen3/4 swizzle detection logic
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 18 Mar 2019 16:56:28 +0000 (18:56 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 20 Mar 2019 14:57:00 +0000 (16:57 +0200)
commit5c227869839b15a066c4808d3a88d36b79b35cd8
tree44cfda05dc6e9a5ea8ecef4d3dd77f4c0ed44bc1
parentfd79d93985e08f29535c07337772a7da3159bda5
drm/i915: Reorder gen3/4 swizzle detection logic

g33/i964g/g45 are the exceptional cases when it comes to
the swizzle detection. Let's reorder the code to handle
them first and let everything else be handled by the
else branch. This allows us to unset .is_mobile for the
desktop PNV variant (which supposedly must follow the
"mobile" path here).

Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190318165633.28924-1-ville.syrjala@linux.intel.com
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
drivers/gpu/drm/i915/i915_gem_fence_reg.c