1. A method comprising: building a mini-tree for each of a plurality of groups of primitives on a graphics processing unit (GPU); and building an sweep-surface-area heuristic (SAH) subtree over the mini-trees in a central processing unit (CPU).