Crashes when resizing windows
Various failures - page faults in the PowerVR driver and a failure to remap (12) on the OMAP side - occur when resizing a 3D window.
There seem to be two causes:
- sometiesquemes the resize pulls a buffer out from under the PowerVR's feet
- buffers being scanned out are not deleted on resize, eventually running out of tiler space
(2) is easy enough to fix by keeping track of these buffers and deleting them later on (1) seems to be trickier, either we need a way to determine the buffer is no longer being used, or just alloc all buffers at maximum size (i.e. display size) and then the buffers don't need to be reallocated on resize.