emersion / libliftoff

Lightweight KMS plane library
MIT License
75 stars 7 forks source link

Mapping order on amdgpu #66

Open emersion opened 2 years ago

emersion commented 2 years ago

Somewhat related to https://github.com/emersion/libliftoff/pull/60.

Trying to present these 3 layers on amdgpu:

  1. Fullscreen NV12
  2. Fullscreen ARGB8888
  3. Cursor ARGB8888

This combination can work:

  1. Primary plane
  2. Overlay plane
  3. Cursor plane

However, libliftoff will try to construct the mapping step by step:

It's a case where adding a new plane will make the configuration work -- the intermediate ARGB plane allows amdgpu to draw the cursor.