wined3d: Merge texture2d_upload_data() and texture3d_upload_data().