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.

Linux/DRA745: how to see current composer and to use dss to compose

Part Number: DRA745

Tool/software: Linux

Hi,

our project based on 6ao1.0.

Q:

1. how to see current composer is (gpu or dss)?

2. how to use dss for composing?

3. what cases dss compose is mainly used on?

thanks.

  • - 1- 

    The currently configured composition mechanism can be seen by running "dumpsys SurfaceFlinger" on the target command prompt. In the logs that are generated there will be a table per display. Within each table, there is a type column, where a value of HWC indicates DSS composition, and a value of GLES indicates GPU composition.

    - 2 -

    DSS composition is enabled by default for the primary display in 6AO.1.0 release. The secondary display defaults to GPU composition. To control DSS composition the following can be run on the command line "set prop.persist.hwc.dss.comp 1", where 1 enables and 0 disables DSS composition.

    - 3 -

    As mentioned DSS composition is enabled by default and currently used for RGBA/NV12 layers. In the case of more than 3 layers being present for the current frame the last two are composed by DSS, and the rest by GPU.

    If modifying the default settings, the optimal selection of DSS composition vs. GPU composition depends on the use case. For certain use cases DSS will offer better power/performance compared to GPU. In other cases, the GPU is better.

    Regards,

    kb