Expand description
dmabuf feedback
This object advertises dmabuf parameters feedback. This includes the preferred devices and the supported formats/modifiers.
The parameters are sent once when this object is created and whenever they change. The done event is always sent once after all parameters have been sent. When a single parameter changes, all parameters are re-sent by the compositor.
Compositors can re-send the parameters when the current client buffer allocations are sub-optimal. Compositors should not re-send the parameters if re-allocating the buffers would not result in a more optimal configuration. In particular, compositors should avoid sending the exact same parameters multiple times in a row.
The tranche_target_device and tranche_formats events are grouped by tranches of preference. For each tranche, a tranche_target_device, one tranche_flags and one or more tranche_formats events are sent, followed by a tranche_done event finishing the list. The tranches are sent in descending order of preference. All formats and modifiers in the same tranche have the same preference.
To send parameters, the compositor sends one main_device event, tranches (each consisting of one tranche_target_device event, one tranche_flags event, tranche_formats events and then a tranche_done event), then one done event.
Structs§
- Tranche
Flags - ZwpLinux
Dmabuf Feedback V1 - dmabuf feedback
Enums§
Constants§
- EVT_
DONE_ OPCODE - The wire opcode for this event
- EVT_
DONE_ SINCE - The minimal object version supporting this event
- EVT_
FORMAT_ TABLE_ OPCODE - The wire opcode for this event
- EVT_
FORMAT_ TABLE_ SINCE - The minimal object version supporting this event
- EVT_
MAIN_ DEVICE_ OPCODE - The wire opcode for this event
- EVT_
MAIN_ DEVICE_ SINCE - The minimal object version supporting this event
- EVT_
TRANCHE_ DONE_ OPCODE - The wire opcode for this event
- EVT_
TRANCHE_ DONE_ SINCE - The minimal object version supporting this event
- EVT_
TRANCHE_ FLAGS_ OPCODE - The wire opcode for this event
- EVT_
TRANCHE_ FLAGS_ SINCE - The minimal object version supporting this event
- EVT_
TRANCHE_ FORMATS_ OPCODE - The wire opcode for this event
- EVT_
TRANCHE_ FORMATS_ SINCE - The minimal object version supporting this event
- EVT_
TRANCHE_ TARGET_ DEVICE_ OPCODE - The wire opcode for this event
- EVT_
TRANCHE_ TARGET_ DEVICE_ SINCE - The minimal object version supporting this event
- REQ_
DESTROY_ OPCODE - The wire opcode for this request
- REQ_
DESTROY_ SINCE - The minimal object version supporting this request