st/mesa: handle layer and primitive id output and point size input