send flag on main tranche

This commit is contained in:
Vaxry 2024-07-08 12:55:22 +02:00
parent 30e9d36c06
commit efd886ec0c

View File

@ -303,6 +303,9 @@ void CLinuxDMABUFFeedbackResource::sendDefault() {
// Main tranche
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_init(&indices);
for (size_t i = 0; i < feedback->formats.size(); ++i) {