mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-04 00:33:12 +00:00
fix(drm): size a plane-rotated scanout as the mode transposed (#16444)
This commit is contained in:
1 parent
3f4bfe535e
commit
0bc2473ffe
3 files changed
+118
-8
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user