drm-backend: Remember to set the zpos for the scanout plane

We can clear this via drm_plane_state_put_back() at the end of
drm_output_propose_state(). We need to set it back to the minimum zpos
when rendering.

Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
This commit is contained in:
Derek Foreman 2023-01-31 10:11:42 -06:00 committed by Daniel Stone
parent ac04199db1
commit 58dde0e0c0

View File

@ -408,6 +408,8 @@ drm_output_render(struct drm_output_state *state, pixman_region32_t *damage)
scanout_state->dest_w = output->base.current_mode->width;
scanout_state->dest_h = output->base.current_mode->height;
scanout_state->zpos = scanout_plane->zpos_min;
pixman_region32_subtract(&c->primary_plane.damage,
&c->primary_plane.damage, damage);