mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-20 01:48:22 +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>
(cherry picked from commit e602035596)
This commit is contained in:
parent
ffd79476ec
commit
baba35ed69
2 changed files with 3 additions and 3 deletions
|
|
@ -224,7 +224,7 @@
|
|||
"description": "zink: clamp in_rp clears to fb size",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -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