wined3d: Use the texture dimension helpers in surface_upload_from_surface().