i965g: improve is_format_supported()
i965g: refactor resource bo allocation
i965g: improve transfer_inline_write()

Clean up the code and add some premature optimizations.