TDA4VEN-Q1: TDA4VEN-Q1: TDA4VEN GPU only calls the gCLear interface, and DDR bandwidth is very large

Part Number: TDA4VEN-Q1

Tool/software:

Hi ,TI's experts

HW :tda4ven board

SW env:sdk10.0

TDA4VEN GPU only calls the gClear interface, and the DDR bandwidth occupies up to 2.2G.

Why does it take up so much, we need your support to help optimize it

gclearcolor(0.0,0.0,1.0,1.0);

gCLear(GL COLOR BUFFER BIT I GL DEPTH BUFFER BIT);

  • Hi,

    Our expert assigned to this E2E thread is currently out of office until Dec 15. 

    Please expect a delay in response.

    Thanks,

    Neehar

  • Hi Sarabesh,

    please help check below summary about DDR BW difference.

    diff --git a/kernels/sample/a72/vx_opengl_mosaic_target.c b/kernels/sample/a72/vx_opengl_mosaic_target.c
    index adcf471..cf1f775 100755
    --- a/kernels/sample/a72/vx_opengl_mosaic_target.c
    +++ b/kernels/sample/a72/vx_opengl_mosaic_target.c
    @@ -291,7 +291,23 @@ static vx_status VX_CALLBACK tivxOpenglMosaicProcess(
    renderTexProp.bufAddr[0] = output_target_ptr;

    appEglBindFrameBuffer(mosaicParams->eglWindowObj, &renderTexProp);
    -
    +#if 1
    + static int num = 0;
    + num++;
    + if (num > 100)
    + {
    + glClearColor(1.0, 0.0, 0.0, 1.0);
    + if (num > 200)
    + {
    + num = 0;
    + }
    + }
    + else
    + {
    + glClearColor(0.0, 0.0, 1.0, 1.0);
    + }
    + glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
    +#endif

    Regards

    Joe

    -1-
    default case

    DDR performance statistics,
    ===========================

    DDR: READ BW: AVG = 951 MB/s, PEAK = 1673 MB/s
    DDR: WRITE BW: AVG = 3391 MB/s, PEAK = 5202 MB/s
    DDR: TOTAL BW: AVG = 4342 MB/s, PEAK = 6875 MB/s

    -2-
    enable #if 1

    DDR performance statistics,
    ===========================

    DDR: READ BW: AVG = 2177 MB/s, PEAK = 7889 MB/s
    DDR: WRITE BW: AVG = 3407 MB/s, PEAK = 12298 MB/s
    DDR: TOTAL BW: AVG = 5584 MB/s, PEAK = 20187 MB/s

    -3-
    enable #if 1 and comments glClearColor

    DDR performance statistics,
    ===========================

    DDR: READ BW: AVG = 2174 MB/s, PEAK = 8868 MB/s
    DDR: WRITE BW: AVG = 3397 MB/s, PEAK = 13884 MB/s
    DDR: TOTAL BW: AVG = 5571 MB/s, PEAK = 22752 MB/s

    -4-
    enable #if 1 and uncomments glClearColor / comments glClear

    DDR performance statistics,
    ===========================

    DDR: READ BW: AVG = 952 MB/s, PEAK = 1645 MB/s
    DDR: WRITE BW: AVG = 3396 MB/s, PEAK = 5231 MB/s
    DDR: TOTAL BW: AVG = 4348 MB/s, PEAK = 6876 MB/s

  • Hi,

    The expert engineer assigned this thread will be back from vacation tomorrow. He will look into this issue and respond as soon as possible.

    Thanks,

    Neehar

  • Hi Sarabesh,

    Could you please help to check?

    Regards

    Joe