gs: Test interaction between gl_PrimitiveIDIn and primitive restart.

Validated using the NVIDIA proprietary driver for linux.