zink: clamp scissors
Acked-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
parent
249cd3fc13
commit
ca074edc7f
|
@ -763,6 +763,10 @@ zink_clear(struct pipe_context *pctx,
|
|||
if (ctx->num_scissors) {
|
||||
for (unsigned i = 0 ; i < ctx->num_scissors; ++i) {
|
||||
rects[i].rect = ctx->scissors[i];
|
||||
rects[i].rect.extent.width = MIN2(rects[i].rect.extent.width,
|
||||
fb->width);
|
||||
rects[i].rect.extent.height = MIN2(rects[i].rect.extent.height,
|
||||
fb->height);
|
||||
rects[i].baseArrayLayer = 0;
|
||||
rects[i].layerCount = num_layers;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue