[PATCH v2] wined3d: Pass a wined3d_device pointer to wined3d_from_cs().