Compact register-init a bit
Add a function to read 3d-registers
Add a function to setup the viewport registers
Add a function to setup the scissor registers
Add a function to control the line-width
Multiple draws

Perform two draw-calls, one for each half of the framebuffer with
different draw-modes.

Use lines for one of them, so we can show that we can control the
line-width.
Add a helper function to set up vertex array pointers
Reuse pitch from fb rather than recalculating it
Fix the detiler to handle incomplete tiles
Align pitch and allocated height
Only use 32-byte alignment when rendering non-tiled
Support rendering non-tiled
Make the command-stream a bit easier to read

This way you don't need to realize that 7 = 0b111
Tidy up and comment clear-code a bit
Parameterize 2D-clearing
Add a helper function to increase syncpts
Implement waitchks. Untested.
Introduce nvhost_fence to maintain syncronization

This way we can render back-to-back without stalling the CPU.