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.

How to use BTE to 90-degree rotation?

Hi,

 

    I want to use the ISS  BTE to  90-degree rotation, i don't know the BTE_CTRL base and the BTE_CONTEXT_BASE how to set,

whether i should to set  the tiler virtual address  0x100000000(the 33-bit address) or the 0x60000000-0x7fffffff to the two register?

    But the true Frame buffer how i can set to the resizer RZA_SDR_Y_BAD_H and RZA_SDR_Y_BAD_L register?

 

    regards

    Li dong

 

 

 

  •     anyone can help me?

  • Hello Li Dong,

    In BTE_CTRL the base should be set as 3 => the base address of 0x60000000_0x7FFFFFFF. This is specified in the global memory map.

    Once the base is specified, the BTE_CONTEXT_BASE_i, BTE_CONTEXT_START_i & BTE_CONTEXT_END_i will define the actual position of the frame buffer in the tiler container.

    We are working on an application note which describes how to use BTE with TILER. This application note will be part of the TI ver2.8.0 release.

    Hope this helps.

    Regards

    Rajat

  • Hi Rajat,

        I set the BTR_CTRL.base = 3,(0x60000000 - 0x7fffffff), and set  DMM_PAT_BASE_ADDR=0x80000000, DMM_PAT_VIEW_MAP_i_REGADDR(i=0~3) =0x07070707,

    let the 0x60000000-0x7fffffff maps to 0xb80000000-0xbfffffff as tiler memory,

    also set

    bte_context_ctrl_t default_context_ctrl_p=
    {
        4,
        0,
        0,
        1,  //addr32
        0,
        0,
        0,  //grid
        0,
        0,
        0,
        0, 
    };
     
    bte_config_t default_bte_cfg=
    {
        BTE_CONTEXT_0,
        &default_context_ctrl_p,
        0,
        0,
        0x04380780,  //1920*1080
    };
     
     
        default_bte_cfg.frame_buffer_addr=0x00000000;  // 0-degree
        bte_config_context_ctrl(&default_bte_cfg);
        default_context_ctrl_p.start=1;  //set start
        bte_config_context_ctrl(&default_bte_cfg);
     
    and set issSetRszOutAddress(RESIZER_A, RSZ_YUV422_RAW_RGB_OP, (void *)0x60000000, viParam[arg1].viPitchY);
     
    memset((void*)0xb8000000,0,1920*1080*2);
     
    then i read the data from 0xb8000000 ,but no data refreshed ,all the data are 0x0.
     
    Whether the bte register i was set is correct?

     

     

  • Hi Rajat,

        I set the BTR_CTRL.base = 3,(0x60000000 - 0x7fffffff), and set  DMM_PAT_BASE_ADDR=0x80000000, DMM_PAT_VIEW_MAP_i_REGADDR(i=0~3) =0x07070707,

    let the 0x60000000-0x7fffffff maps to 0xb80000000-0xbfffffff as tiler memory,

    also set

    bte_context_ctrl_t default_context_ctrl_p=
    {
        4,
        0,
        0,
        1,  //addr32
        0,
        0,
        0,  //grid
        0,
        0,
        0,
        0, 
    };
     
    bte_config_t default_bte_cfg=
    {
        BTE_CONTEXT_0,
        &default_context_ctrl_p,
        0,
        0,
        0x04380780,  //1920*1080
    };
     
     
        default_bte_cfg.frame_buffer_addr=0x00000000;  // 0-degree
        bte_config_context_ctrl(&default_bte_cfg);
        default_context_ctrl_p.start=1;  //set start
        bte_config_context_ctrl(&default_bte_cfg);
     
    and set issSetRszOutAddress(RESIZER_A, RSZ_YUV422_RAW_RGB_OP, (void *)0x60000000, viParam[arg1].viPitchY);
     
    memset((void*)0xb8000000,0,1920*1080*2);
     
    then i read the data from 0xb8000000 ,but no data refreshed ,all the data are 0x0.
     
    Whether the bte register i was set is correct?