This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM5728: Reading DRM buffer in galRunTest2_drm.c

Other Parts Discussed in Thread: AM5728

Hi,

I would like to read image form buffer not BMP file.

I create a buffer using sample code in "create_target_surface" function.

And I use omap_bo_map to  get buffer's virtual address.

Then, wrapped the buffer using SDK
gcoSURF_Construct : gcvPOOL_DEFAULT change to gcvPOOL_USER
gcoSURF_SetBuffer : set buffer's virtual address

When I using "gcoSURF_Lock", the following error message printed out:

failed:gcvSTATUS_MEMORY_UNLOCKED

So, How do i do it right?

Best Regards,
Bossun