Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 11f14871 authored by Antoine Labour's avatar Antoine Labour
Browse files

BufferQueueProducer: fix which slot gets pre-allocated

Commit 78014f32 introduced a bug that
made us pre-allocate buffers into the last available free slots instead
of the first available ones. This in turn caused more re-allocations,
and possibly triggered driver bugs.

Change-Id: Ic4a70e676b4f2bbb054bc873be62ced26e3099a0
parent c268068c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -890,7 +890,7 @@ void BufferQueueProducer::allocateBuffers(bool async, uint32_t width,
                        continue;
                    }

                    freeSlots.push_front(slot);
                    freeSlots.push_back(slot);
                }
            }