+27
−21
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
Pull some of the logic out into msm_gem_new() (since we don't need to
care about the imported-bo case), and don't defer allocating pages. The
latter is generally a good idea, since if we are using VRAM carveout to
allocate contiguous buffers (ie. no IOMMU), the allocation is more
likely to fail. So failing at allocation time is a more sane option.
Plus this simplifies things in the next patch.
Signed-off-by:
Rob Clark <robdclark@gmail.com>