st/mesa: fix PRIMITIVES_GENERATED query after the "pipeline stat single" changes