From 4a1424e85b39128f60c22ced2d797451eabf70dc Mon Sep 17 00:00:00 2001 From: Vaxry Date: Wed, 24 Jul 2024 20:11:55 +0200 Subject: [PATCH] gbm: use flags in create_with_modifiers amdeeznuts --- src/allocator/GBM.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/allocator/GBM.cpp b/src/allocator/GBM.cpp index 2760ef0..cd2d280 100644 --- a/src/allocator/GBM.cpp +++ b/src/allocator/GBM.cpp @@ -121,7 +121,7 @@ Aquamarine::CGBMBuffer::CGBMBuffer(const SAllocatorBufferParams& params, Hypruti for (auto& mod : explicitModifiers) { TRACE(allocator->backend->log(AQ_LOG_TRACE, std::format("GBM: | mod 0x{:x}", mod))); } - bo = gbm_bo_create_with_modifiers(allocator->gbmDevice, attrs.size.x, attrs.size.y, attrs.format, explicitModifiers.data(), explicitModifiers.size()); + bo = gbm_bo_create_with_modifiers2(allocator->gbmDevice, attrs.size.x, attrs.size.y, attrs.format, explicitModifiers.data(), explicitModifiers.size(), flags); if (!bo) { allocator->backend->log(AQ_LOG_ERROR, "GBM: Allocating with modifiers failed, falling back to implicit");