fix(drm): size a plane-rotated scanout as the mode transposed (#16444)

This commit is contained in:
Hintay authored and GitHub committed 2026-10-09 14:11:42 +08:00
1 parent 3f4bfe535e
commit 0bc2473ffe
3 files changed
+118 -8

No files matched your search

+6
View File
@@ -553,6 +553,12 @@ impl DrmReader {
plane_rotation_answer(rc, rotation)
}
/// The primary plane's rotation read NOW, for a caller that has not grabbed (enumeration):
/// `plane_rotation()` only reflects the last grab.
pub fn query_plane_rotation(&mut self) -> Option<u32> {
self.read_plane_rotation()
}
/// Zero-copy EXPORT grab: fills a `drmtap_dmabuf_desc` (dma-buf fd, plane layout, HDR metadata) WITHOUT mapping, detiling or copying pixels, so on this
/// path the root process never loads libEGL/libGLESv2. The exported fd is READ-ONLY (libdrmtap drops `DRM_RDWR` and `dup` shares that open file
/// description), so the `--server` that receives it can map the scanout but never write the live framebuffer. Validation here is METADATA ONLY.