Lines Matching defs:box
1727 SVGA3dBox *box = &dirty->boxes[loc_start->sub_resource];
1730 u32 box_c2 = box->z + box->d;
1735 if (box->d == 0 || box->z > loc_start->z)
1736 box->z = loc_start->z;
1738 box->d = loc_end->z - box->z;
1741 box_c2 = box->y + box->h;
1742 if (box->h == 0 || box->y > loc_start->y)
1743 box->y = loc_start->y;
1745 box->h = loc_end->y - box->y;
1748 box_c2 = box->x + box->w;
1749 if (box->w == 0 || box->x > loc_start->x)
1750 box->x = loc_start->x;
1752 box->w = loc_end->x - box->x;
1754 box->x = 0;
1755 box->w = size->width;
1758 box->y = 0;
1759 box->h = size->height;
1760 box->x = 0;
1761 box->w = size->width;
1775 SVGA3dBox *box = &dirty->boxes[subres];
1777 box->x = 0;
1778 box->y = 0;
1779 box->z = 0;
1780 box->w = size->width;
1781 box->h = size->height;
1782 box->d = size->depth;
1847 SVGA3dBox *box = &dirty->boxes[0];
1850 box->h = box->d = 1;
1853 box_c2 = box->x + box->w;
1854 if (box->w == 0 || box->x > start)
1855 box->x = start;
1857 box->w = end - box->x;
1902 const SVGA3dBox *box = &dirty->boxes[i];
1904 if (box->d)
1920 const SVGA3dBox *box = &dirty->boxes[i];
1922 if (!box->d)
1934 cmd1->body.box = *box;
1943 cmd2->body.box = *box;