send flag on main tranche

This commit is contained in:
Vaxry 2024-07-08 12:55:22 +02:00
parent f472dcd67b
commit be4051e923

View file

@ -303,6 +303,9 @@ void CLinuxDMABUFFeedbackResource::sendDefault() {
// Main tranche // Main tranche
resource->sendTrancheTargetDevice(&deviceArr); resource->sendTrancheTargetDevice(&deviceArr);
// Technically, on a single-gpu system, this is correct I believe.
resource->sendTrancheFlags(ZWP_LINUX_DMABUF_FEEDBACK_V1_TRANCHE_FLAGS_SCANOUT);
wl_array indices; wl_array indices;
wl_array_init(&indices); wl_array_init(&indices);
for (size_t i = 0; i < feedback->formats.size(); ++i) { for (size_t i = 0; i < feedback->formats.size(); ++i) {