Skip to content

Commit

Permalink
drm/msm: use contiguous vram for MSM_BO_SCANOUT when possible
Browse files Browse the repository at this point in the history
Makes it possible to have MMU for GPU but not display.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Signed-off-by: Rob Clark <robdclark@gmail.com>
  • Loading branch information
Jonathan Marek authored and Rob Clark committed Dec 11, 2018
1 parent 373931d commit 86f46f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/msm/msm_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -977,7 +977,7 @@ static struct drm_gem_object *_msm_gem_new(struct drm_device *dev,

if (!iommu_present(&platform_bus_type))
use_vram = true;
else if ((flags & MSM_BO_STOLEN) && priv->vram.size)
else if ((flags & (MSM_BO_STOLEN | MSM_BO_SCANOUT)) && priv->vram.size)
use_vram = true;

if (WARN_ON(use_vram && !priv->vram.size))
Expand Down

0 comments on commit 86f46f2

Please sign in to comment.