g2d_make_current: invalid g2d thread context

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

g2d_make_current: invalid g2d thread context

911 Views
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?

Labels (1)
Tags (1)
0 Kudos
1 Reply

520 Views
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 Kudos