From 413bbde26b741c87601802021a3cd10c04ea420d Mon Sep 17 00:00:00 2001 From: Julian Orth Date: Thu, 30 May 2024 12:57:34 +0200 Subject: [PATCH] gbm: hard-code invalid modifier if explicit modifiers are not supported --- src/video/gbm.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/video/gbm.rs b/src/video/gbm.rs index 4eb888b8..bc7c04f0 100644 --- a/src/video/gbm.rs +++ b/src/video/gbm.rs @@ -237,7 +237,10 @@ impl GbmDevice { return Err(GbmError::CreateBo(OsError::default())); } let bo = BoHolder { bo }; - let dma = export_bo(dma_buf_ids, bo.bo)?; + let mut dma = export_bo(dma_buf_ids, bo.bo)?; + if modifiers.is_null() { + dma.modifier = INVALID_MODIFIER; + } Ok(GbmBo { bo, dmabuf: dma }) } }