[Mesa-dev] [PATCH] egl/drm: add going out of the loop when the designated buffer is found

Emil Velikov emil.l.velikov at gmail.com
Mon Jul 17 15:42:08 UTC 2017


On 17 July 2017 at 16:03, Gwan-gyeong Mun <elongbug at gmail.com> wrote:
> Because the color_buffers have a each unique bo, if the designated buffer is
> found, release_buffer() can go out the loop which seaches the buffer.
>
Indeed. Currently we waste a couple of CPU cycles to check the
remaining color buffers when we don't need to.

Reviewed-by: Emil Velikov <emil.velikov at collabora.com>

-Emil


More information about the mesa-dev mailing list