drm: Remove unnecessary condition in drm_output_render reuse
authorDaniel Stone <daniels@collabora.com>
Fri, 6 Mar 2020 11:03:14 +0000 (11:03 +0000)
committerPekka Paalanen <pq@iki.fi>
Fri, 20 Mar 2020 15:25:24 +0000 (15:25 +0000)
commit98d75e1b238bbf5da406ea53d42392749fc84dd3
treee1408c75a767cfc1070b9d8ecb3428d1ce9429ba
parent7fa97e66eb0d9b0cf3a0056ba234df9988eaf7af
drm: Remove unnecessary condition in drm_output_render reuse

This condition inside drm_output_render() checks if we can reuse the
existing renderer buffer for the primary plane; this occurs in
mixed-mode composition where a client buffer promoted to a plane has
changed, but the primary plane is unchanged.

We accomplish this by checking if there is no damage on the
primary/renderer plane, and then if there is already a renderer buffer
active on the primary plane: in that case, we can reuse the buffer we
already have.

There was a further condition checking if the width and height were
identical. This was designed to prevent against issues on mode changes.
However, runtime mode changes are already quite broken, and a mode
change will also cause damage on the full plane. We can simply remove
this condition.

Signed-off-by: Daniel Stone <daniels@collabora.com>
libweston/backend-drm/drm.c