Add all kinds of framebuffer layout sanity checks to the code.

Also the framebuffer offset wasn't properly handled, and code dealing
with the primary plane pixel format was quite broken.

Reply via email to