From 21bc24b7aee138bd1f43a11eb8b86e96039fdacf Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Tue, 30 May 2017 13:57:53 +0300 Subject: omapfb: add flags for memory alloc --- kms++/src/omap/omapframebuffer.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'kms++/src') diff --git a/kms++/src/omap/omapframebuffer.cpp b/kms++/src/omap/omapframebuffer.cpp index 4aa1cdb..b27ca22 100644 --- a/kms++/src/omap/omapframebuffer.cpp +++ b/kms++/src/omap/omapframebuffer.cpp @@ -54,6 +54,15 @@ void OmapFramebuffer::Create(Flags buffer_flags) uint32_t flags = OMAP_BO_SCANOUT | OMAP_BO_WC; +#if defined(OMAP_BO_MEM_CONTIG) + if (buffer_flags & Flags::MemContig) + flags |= OMAP_BO_MEM_CONTIG; + if (buffer_flags & Flags::MemTiler) + flags |= OMAP_BO_MEM_TILER; + if (buffer_flags & Flags::MemPin) + flags |= OMAP_BO_MEM_PIN; +#endif + struct omap_bo* bo; uint32_t stride; -- cgit v1.2.3