g2d_alloc: alloc memory fail with size 6220800

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

g2d_alloc: alloc memory fail with size 6220800

2,356 Views
yongtang
Contributor I

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?

Labels (1)
Tags (1)
0 Kudos
2 Replies

1,277 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

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

0 Kudos

1,277 Views
yongtang
Contributor I

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

0 Kudos