Lines Matching defs:box
1674 SVGA3dBox *box = &dirty->boxes[loc_start->sub_resource];
1677 u32 box_c2 = box->z + box->d;
1682 if (box->d == 0 || box->z > loc_start->z)
1683 box->z = loc_start->z;
1685 box->d = loc_end->z - box->z;
1688 box_c2 = box->y + box->h;
1689 if (box->h == 0 || box->y > loc_start->y)
1690 box->y = loc_start->y;
1692 box->h = loc_end->y - box->y;
1695 box_c2 = box->x + box->w;
1696 if (box->w == 0 || box->x > loc_start->x)
1697 box->x = loc_start->x;
1699 box->w = loc_end->x - box->x;
1701 box->x = 0;
1702 box->w = size->width;
1705 box->y = 0;
1706 box->h = size->height;
1707 box->x = 0;
1708 box->w = size->width;
1722 SVGA3dBox *box = &dirty->boxes[subres];
1724 box->x = 0;
1725 box->y = 0;
1726 box->z = 0;
1727 box->w = size->width;
1728 box->h = size->height;
1729 box->d = size->depth;
1794 SVGA3dBox *box = &dirty->boxes[0];
1797 box->h = box->d = 1;
1800 box_c2 = box->x + box->w;
1801 if (box->w == 0 || box->x > start)
1802 box->x = start;
1804 box->w = end - box->x;
1848 const SVGA3dBox *box = &dirty->boxes[i];
1850 if (box->d)
1866 const SVGA3dBox *box = &dirty->boxes[i];
1868 if (!box->d)
1880 cmd1->body.box = *box;
1889 cmd2->body.box = *box;