mesa: fix logic error in computing enableBits in update_texture_state()