mesa: move shared context state functions to new shared.c file
6 files changed