g2d_alloc: alloc memory fail with size 6220800

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

g2d_alloc: alloc memory fail with size 6220800

3,371 次查看
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?

标签 (1)
标记 (1)
0 项奖励
回复
2 回复数

2,292 次查看
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 项奖励
回复

2,292 次查看
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 项奖励
回复