configs/open1788/pwfb: Add an example for testing per-window frame buffers. arch/arm/src/lpc17xx: Add a configuration option to skip over the framebuffer when adding DRAM to the heap. graphics: Early fixes from testing per-window framebuffer. Still lots of problems.

This commit is contained in:
Gregory Nutt
2019-03-16 12:31:29 -06:00
parent e5c0084804
commit 56c7b65094
7 changed files with 122 additions and 10 deletions
+7 -3
View File
@@ -117,7 +117,7 @@ static void nxbe_realloc(FAR struct nxbe_window_s *wnd,
newidth = wnd->bounds.pt2.x - wnd->bounds.pt1.x + 1;
newheight = wnd->bounds.pt2.y - wnd->bounds.pt1.y + 1;
bpp = wnd->be->plane[0].pinfo.bpp;
newstride = (bpp * newidth + 7) >> 8;
newstride = (bpp * newidth + 7) >> 3;
newfbsize = newstride * newheight;
#ifdef CONFIG_BUILD_KERNEL
@@ -134,7 +134,9 @@ static void nxbe_realloc(FAR struct nxbe_window_s *wnd,
{
/* Fall back to no RAM back up */
gerr("ERROR: mm_pgalloc() failed\n");
gerr("ERROR: mm_pgalloc() failed for fbsize=%lu, npages=%u\n",
(unsigned long)newfbsize, npages);
mm_pgfree(wnd->fbmem, wnd->npages);
wnd->stride = 0;
wnd->npages = 0;
@@ -150,7 +152,9 @@ static void nxbe_realloc(FAR struct nxbe_window_s *wnd,
{
/* Fall back to no RAM back up */
gerr("ERROR: mm_pgalloc() failed\n");
gerr("ERROR: kumm_malloc() failed for fbsize=%lu\n",
(unsigned long)newfbsize);
kumm_free(wnd->fbmem);
wnd->stride = 0;
wnd->fbmem = NULL;