mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 09:20:13 +01:00
freedreno: scissor fix
Don't assume the state-tracker will set the scissor after the framebuffer state is changed. Signed-off-by: Rob Clark <robclark@freedesktop.org>
This commit is contained in:
parent
97fa811d14
commit
95670bdee2
1 changed files with 11 additions and 0 deletions
|
|
@ -135,6 +135,17 @@ fd_set_framebuffer_state(struct pipe_context *pctx,
|
|||
pipe_surface_reference(&cso->zsbuf, framebuffer->zsbuf);
|
||||
|
||||
ctx->dirty |= FD_DIRTY_FRAMEBUFFER;
|
||||
|
||||
/* also need to reset the scissor.. mesa/gl state tracker
|
||||
* does this for us, but u_blitter doesn't and other
|
||||
* state trackers might not..
|
||||
*/
|
||||
ctx->scissor.minx = 0;
|
||||
ctx->scissor.miny = 0;
|
||||
ctx->scissor.maxx = cso->width;
|
||||
ctx->scissor.maxy = cso->height;
|
||||
|
||||
ctx->dirty |= FD_DIRTY_SCISSOR;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue