Lines Matching refs:bbox
334 unsigned idx, int *bbox) in _mesa_intersect_scissor_bounding_box() argument
337 if (ctx->Scissor.ScissorArray[idx].X > bbox[0]) { in _mesa_intersect_scissor_bounding_box()
338 bbox[0] = ctx->Scissor.ScissorArray[idx].X; in _mesa_intersect_scissor_bounding_box()
340 if (ctx->Scissor.ScissorArray[idx].Y > bbox[2]) { in _mesa_intersect_scissor_bounding_box()
341 bbox[2] = ctx->Scissor.ScissorArray[idx].Y; in _mesa_intersect_scissor_bounding_box()
343 if (ctx->Scissor.ScissorArray[idx].X + ctx->Scissor.ScissorArray[idx].Width < bbox[1]) { in _mesa_intersect_scissor_bounding_box()
344 bbox[1] = ctx->Scissor.ScissorArray[idx].X + ctx->Scissor.ScissorArray[idx].Width; in _mesa_intersect_scissor_bounding_box()
346 if (ctx->Scissor.ScissorArray[idx].Y + ctx->Scissor.ScissorArray[idx].Height < bbox[3]) { in _mesa_intersect_scissor_bounding_box()
347 bbox[3] = ctx->Scissor.ScissorArray[idx].Y + ctx->Scissor.ScissorArray[idx].Height; in _mesa_intersect_scissor_bounding_box()
350 if (bbox[0] > bbox[1]) { in _mesa_intersect_scissor_bounding_box()
351 bbox[0] = bbox[1]; in _mesa_intersect_scissor_bounding_box()
353 if (bbox[2] > bbox[3]) { in _mesa_intersect_scissor_bounding_box()
354 bbox[2] = bbox[3]; in _mesa_intersect_scissor_bounding_box()
376 unsigned idx, int *bbox) in scissor_bounding_box() argument
378 bbox[0] = 0; in scissor_bounding_box()
379 bbox[2] = 0; in scissor_bounding_box()
380 bbox[1] = buffer->Width; in scissor_bounding_box()
381 bbox[3] = buffer->Height; in scissor_bounding_box()
383 _mesa_intersect_scissor_bounding_box(ctx, idx, bbox); in scissor_bounding_box()
385 assert(bbox[0] <= bbox[1]); in scissor_bounding_box()
386 assert(bbox[2] <= bbox[3]); in scissor_bounding_box()
399 int bbox[4]; in _mesa_update_draw_buffer_bounds() local
405 scissor_bounding_box(ctx, buffer, 0, bbox); in _mesa_update_draw_buffer_bounds()
406 buffer->_Xmin = bbox[0]; in _mesa_update_draw_buffer_bounds()
407 buffer->_Ymin = bbox[2]; in _mesa_update_draw_buffer_bounds()
408 buffer->_Xmax = bbox[1]; in _mesa_update_draw_buffer_bounds()
409 buffer->_Ymax = bbox[3]; in _mesa_update_draw_buffer_bounds()