st/mesa: Invalidate the gallium array atom only if needed.