gfx rewrites and 1bpp support