[PATCH v2 1/2] wined3d: Introduce a new wined3d_resource_get_sysmem helper.