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: AM5728. how shared same memory between GC320 and omap_bo (DRM)?

Part Number: AM5728

Hello TI, I am using the Linux Processor SDK for AM57x v05.02.00.10.

I studied the information from http://software-dl.ti.com/processor-sdk-linux/esd/docs/latest/linux/Examples_and_Demos/Application_Demos/Video_Graphics_Test.html

I have successfully built and run the video-graphics-test from https://git.ti.com/cgit/sitara-linux/video-graphics-test/

I studied the sources from https://git.ti.com/cgit/graphics/ti-gc320-test/?h=ti-5.0.11.p7

I have a task of working with video captured in memory allocated using omap_bo (DRM). This video needs to be mirrored using GC320. All of the examples above use CMEM.

Is it possible to use the memory allocated by omap_bo for GC320?

Сan you advise some examples or samples (omap_bo and GC320 works through shared memory)?

Now i am getting the following error:

gcoSURF_SetBuffer don't have error, but, gcoSURF_SetWindow of next coding have error.

status = gcoSURF_SetBuffer(
                            lpSurface->Surface,
                            gcvSURF_BITMAP,
                            format,
                            stride,
                            vaddr,
                            phys
                          );

status = gcoSURF_SetWindow(lpSurface->Surface, 0, 0, width, height);

ERROR:src/svl/src/gc320_omap.cpp configureSurface:337: Failed: gcvSTATUS_OUT_OF_RESOURCES

The source code is simplified. If you need the complete code, please write about it.