Function drm_format_from_virtio_gpu_format

Source
fn drm_format_from_virtio_gpu_format(
    virtio_gpu_format: u32,
) -> Option<DrmFormat>
Expand description

Returns the DRM format of a virtio-gpu format used by SET_SCANOUT_BLOB.

virtio-gpu formats name the channels in memory byte order, DRM formats from the most significant byte of a little-endian word, so the channel order is reversed.