wined3d: Introduce surface_prepare_texture().