Perform clipping of rgba rectangles to prevent buffer overrun.
Calculate BR swap correctly in presentation queue.
Add bgra shader (i.e. brswap).