gfx pipeline flagging changes

Fixing palette width for flagging. Fixing some flag setting.