Matteo Bruni (@Mystral) commented about dlls/d3dx10_43/texture.c:
+ loaded_level_count = min(src_info.levels - info.SrcFirstMip, info.NumMips); + + if (loaded_level_count < info.NumMips) + { + FIXME("Mipmap generation is currently unimplemented.\n"); + return E_NOTIMPL; + } + + if (info.pSrcBox) + init_d3d10_box(&src_box, info.pSrcBox->left, info.pSrcBox->top, info.pSrcBox->right, info.pSrcBox->bottom, + info.pSrcBox->front, info.pSrcBox->back); + else + init_d3d10_box(&src_box, 0, 0, src_info.size.width, src_info.size.height, 0, src_info.size.depth); + /* Native will do an OOB access in this case, we'll just clamp instead. */ + if (d3d10_box_clamp(&src_box, info.SrcFirstMip, &src_info.size) && info.pSrcBox) + TRACE("Clamped passed in pSrcBox values.\n"); Same here and below.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/10887#note_140375