drm/i915: Eliminate obj->state usage in g4x/vlv/chv wm computation
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 23 Aug 2017 15:22:22 +0000 (18:22 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 31 Aug 2017 18:27:58 +0000 (21:27 +0300)
commit7b510451c896dfd5c1f007ba61f04708dd930660
treebe1f23906761a6b395ce9dec784b928f3292995a
parentd3a8fb3223a7b2fc50bc818ddbeb780c67420d6d
drm/i915: Eliminate obj->state usage in g4x/vlv/chv wm computation

Use explicit old/new states instead of relying on obj->state.

Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170823152226.22938-4-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_pm.c