1. A device comprising: a graphics processing unit (GPU) configured to perform 3-dimensional (3-D) graphics processing in accordance with a 3-D graphics pipeline to render 3-D images, and to perform 2-dimensional (2-D) graphics processing in accordance with a 2-D graphics pipeline to render 2-D images, wherein each of a plurality of stages of the 2-D graphics pipeline is mapped to be performed using at least one of a plurality of stages of the 3-D graphics pipeline, wherein clipping in the 2-D graphics pipeline is mapped to be performed using functions performed by a depth test engine of the 3-D graphics pipeline; and a memory configured to store data for the GPU.