mesa: driver hook for primitive restart