[PATCH 1/2] vmwgfx: Implement memory accounting for resources