mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
drm/i915: use gen6 stolen check on VLV
It uses the same bit definitions. Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
5d66d5b6be
commit
086ddccec4
1 changed files with 1 additions and 1 deletions
|
|
@ -752,7 +752,7 @@ static int gen6_gmch_probe(struct drm_device *dev,
|
|||
pci_read_config_word(dev->pdev, SNB_GMCH_CTRL, &snb_gmch_ctl);
|
||||
gtt_size = gen6_get_total_gtt_size(snb_gmch_ctl);
|
||||
|
||||
if (IS_GEN7(dev))
|
||||
if (IS_GEN7(dev) && !IS_VALLEYVIEW(dev))
|
||||
*stolen = gen7_get_stolen_size(snb_gmch_ctl);
|
||||
else
|
||||
*stolen = gen6_get_stolen_size(snb_gmch_ctl);
|
||||
|
|
|
|||
Loading…
Reference in a new issue