g2d_alloc: alloc memory fail with size 6220800
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, Freescale
I use g2d for image scale,but failed on alloc g2d memory(size = 6220800):
g2d_open(&mhG2d);
nSrcBufSize = 6220800; //1080p yuv444
g2d_alloc(nSrcBufSize, 0);
error log:
g2d_alloc: alloc memory fail with size 6220800!
Alloc 4608000 bytes success(1920x1200, yuv422).
How can i fixed this issue? How much hard memory for G2D can i alloc?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi yong
g2d_alloc has the 32MB limit. Please check document provided at: Re: GPU3D Driver Support
Section 9 GPU memory, for instructions to change this reserved memory space.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, Bio_TICFSL
Thanks for your reply.
I have some questions related the gpu memory:
1. How can i observed the free memory size not be allocated?
2. If g2d_alloc failed,does there have some workaround for this?
Regards
