[PATCH v2 0/6] MR6776: d3dx9: D3DXSaveSurfaceToFileInMemory() refactoring, part 1.