Lines Matching refs:box
1718 SVGA3dBox *box = &dirty->boxes[loc_start->sub_resource]; in vmw_subres_dirty_add() local
1721 u32 box_c2 = box->z + box->d; in vmw_subres_dirty_add()
1726 if (box->d == 0 || box->z > loc_start->z) in vmw_subres_dirty_add()
1727 box->z = loc_start->z; in vmw_subres_dirty_add()
1729 box->d = loc_end->z - box->z; in vmw_subres_dirty_add()
1732 box_c2 = box->y + box->h; in vmw_subres_dirty_add()
1733 if (box->h == 0 || box->y > loc_start->y) in vmw_subres_dirty_add()
1734 box->y = loc_start->y; in vmw_subres_dirty_add()
1736 box->h = loc_end->y - box->y; in vmw_subres_dirty_add()
1739 box_c2 = box->x + box->w; in vmw_subres_dirty_add()
1740 if (box->w == 0 || box->x > loc_start->x) in vmw_subres_dirty_add()
1741 box->x = loc_start->x; in vmw_subres_dirty_add()
1743 box->w = loc_end->x - box->x; in vmw_subres_dirty_add()
1745 box->x = 0; in vmw_subres_dirty_add()
1746 box->w = size->width; in vmw_subres_dirty_add()
1749 box->y = 0; in vmw_subres_dirty_add()
1750 box->h = size->height; in vmw_subres_dirty_add()
1751 box->x = 0; in vmw_subres_dirty_add()
1752 box->w = size->width; in vmw_subres_dirty_add()
1766 SVGA3dBox *box = &dirty->boxes[subres]; in vmw_subres_dirty_full() local
1768 box->x = 0; in vmw_subres_dirty_full()
1769 box->y = 0; in vmw_subres_dirty_full()
1770 box->z = 0; in vmw_subres_dirty_full()
1771 box->w = size->width; in vmw_subres_dirty_full()
1772 box->h = size->height; in vmw_subres_dirty_full()
1773 box->d = size->depth; in vmw_subres_dirty_full()
1838 SVGA3dBox *box = &dirty->boxes[0]; in vmw_surface_buf_dirty_range_add() local
1841 box->h = box->d = 1; in vmw_surface_buf_dirty_range_add()
1844 box_c2 = box->x + box->w; in vmw_surface_buf_dirty_range_add()
1845 if (box->w == 0 || box->x > start) in vmw_surface_buf_dirty_range_add()
1846 box->x = start; in vmw_surface_buf_dirty_range_add()
1848 box->w = end - box->x; in vmw_surface_buf_dirty_range_add()
1892 const SVGA3dBox *box = &dirty->boxes[i]; in vmw_surface_dirty_sync() local
1894 if (box->d) in vmw_surface_dirty_sync()
1910 const SVGA3dBox *box = &dirty->boxes[i]; in vmw_surface_dirty_sync() local
1912 if (!box->d) in vmw_surface_dirty_sync()
1924 cmd1->body.box = *box; in vmw_surface_dirty_sync()
1933 cmd2->body.box = *box; in vmw_surface_dirty_sync()