mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
vl/compositor: set the scissor before clearing the render target
Otherwise we clear areas that shouldn't be cleared. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu> Cc: mesa-stable@lists.freedesktop.org
This commit is contained in:
parent
b73c20759f
commit
03a99ba9e4
1 changed files with 1 additions and 1 deletions
|
|
@ -1060,6 +1060,7 @@ vl_compositor_render(struct vl_compositor_state *s,
|
||||||
s->scissor.maxx = dst_surface->width;
|
s->scissor.maxx = dst_surface->width;
|
||||||
s->scissor.maxy = dst_surface->height;
|
s->scissor.maxy = dst_surface->height;
|
||||||
}
|
}
|
||||||
|
c->pipe->set_scissor_states(c->pipe, 0, 1, &s->scissor);
|
||||||
|
|
||||||
gen_vertex_data(c, s, dirty_area);
|
gen_vertex_data(c, s, dirty_area);
|
||||||
|
|
||||||
|
|
@ -1072,7 +1073,6 @@ vl_compositor_render(struct vl_compositor_state *s,
|
||||||
dirty_area->x1 = dirty_area->y1 = MIN_DIRTY;
|
dirty_area->x1 = dirty_area->y1 = MIN_DIRTY;
|
||||||
}
|
}
|
||||||
|
|
||||||
c->pipe->set_scissor_states(c->pipe, 0, 1, &s->scissor);
|
|
||||||
c->pipe->set_framebuffer_state(c->pipe, &c->fb_state);
|
c->pipe->set_framebuffer_state(c->pipe, &c->fb_state);
|
||||||
c->pipe->bind_vs_state(c->pipe, c->vs);
|
c->pipe->bind_vs_state(c->pipe, c->vs);
|
||||||
c->pipe->set_vertex_buffers(c->pipe, 0, 1, &c->vertex_buf);
|
c->pipe->set_vertex_buffers(c->pipe, 0, 1, &c->vertex_buf);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue