[WiP] gallium: Work in progress on OpenFIMG driver

Changes:
 - fixed multi-context operation,
 - fixed found bugs in state emission code,
 - disasm, ir and compiler fixes and enhancements.