g2d_make_current: invalid g2d thread context

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

g2d_make_current: invalid g2d thread context

926 次查看
yongtang
Contributor I

Hi, Freescale

I use g2d for image scale,my call order as below:

     g2d_open(&mhG2d)

     g2d_alloc

     g2d_make_current(mhG2d, G2D_HARDWARE_2D)

     ...

But it failed on g2d_make_current,it is indicate "g2d_make_current: invalid g2d thread context !",what is wrong with this call order? How can i fixed?

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

535 次查看
jamesbone
NXP TechSupport
NXP TechSupport

Hello Yong,

Your memory allocation in your order it is incorrect. Please check document provided at: Re: GPU3D Driver Support

Section 9 GPU memory, for instructions to change this reserved memory space.

Something like

nSrcBufSize = 3220800; 

g2d_alloc(nSrcBufSize, 0);

0 项奖励