From 9c4bb5d2ea3209234bf95297293e84ab1aa9d872 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sat, 29 Jun 2024 18:22:23 +0200 Subject: [PATCH] gbm: log modifiers --- src/allocator/GBM.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/allocator/GBM.cpp b/src/allocator/GBM.cpp index a1e6e25..f11c262 100644 --- a/src/allocator/GBM.cpp +++ b/src/allocator/GBM.cpp @@ -104,8 +104,13 @@ Aquamarine::CGBMBuffer::CGBMBuffer(const SAllocatorBufferParams& params, Hypruti if (explicitModifiers.empty()) { allocator->backend->log(AQ_LOG_WARNING, "GBM: Using modifier-less allocation"); bo = gbm_bo_create(allocator->gbmDevice, params.size.x, params.size.y, params.format, flags); - } else + } else { + allocator->backend->log(AQ_LOG_TRACE, std::format("GBM: Using modifier-based allocation, modifiers: {}", explicitModifiers.size())); + for (auto& mod : explicitModifiers) { + allocator->backend->log(AQ_LOG_TRACE, std::format("GBM: | mod 0x{:x}", mod)); + } bo = gbm_bo_create_with_modifiers(allocator->gbmDevice, params.size.x, params.size.y, params.format, explicitModifiers.data(), explicitModifiers.size()); + } if (!bo) { allocator->backend->log(AQ_LOG_ERROR, "GBM: Failed to allocate a GBM buffer: bo null");