mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 03:48:06 +02:00
zink: clamp in_rp clears to fb size
this was almost sort of clamping except that it wasn't cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27553>
This commit is contained in:
parent
e032e7f6cc
commit
e602035596
1 changed files with 2 additions and 2 deletions
|
|
@ -98,8 +98,8 @@ clear_in_rp(struct pipe_context *pctx,
|
|||
return;
|
||||
cr.rect.offset.x = scissor_state->minx;
|
||||
cr.rect.offset.y = scissor_state->miny;
|
||||
cr.rect.extent.width = MIN2(fb->width, scissor_state->maxx - scissor_state->minx);
|
||||
cr.rect.extent.height = MIN2(fb->height, scissor_state->maxy - scissor_state->miny);
|
||||
cr.rect.extent.width = MIN2(fb->width - cr.rect.offset.x, scissor_state->maxx - scissor_state->minx);
|
||||
cr.rect.extent.height = MIN2(fb->height - cr.rect.offset.y, scissor_state->maxy - scissor_state->miny);
|
||||
} else {
|
||||
cr.rect.extent.width = fb->width;
|
||||
cr.rect.extent.height = fb->height;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue