SWDEV-403638 - Fix warnings
- disable deprecated function use warning - disalbe size_t to .type' warning - disable conversion from 'type1' to 'type2' warning Signed-off-by: sdashmiz <shadi.dashmiz@amd.com> Change-Id: I64161fd37cf56de3d132102103267ae8da40193a
这个提交包含在:
@@ -1508,7 +1508,7 @@ bool Resource::partialMemCopyTo(VirtualGPU& gpu, const amd::Coord3D& srcOrigin,
|
||||
gpu.queue(gpu.engineID_).addCmdMemRef(memRef());
|
||||
gpu.queue(gpu.engineID_).addCmdMemRef(dstResource.memRef());
|
||||
if (desc().buffer_ && !dstResource.desc().buffer_) {
|
||||
int arraySliceIdx = img2Darray ? dstOrigin[2] : 0;
|
||||
uint32_t arraySliceIdx = img2Darray ? dstOrigin[2] : 0;
|
||||
Pal::SubresId ImgSubresId = {0, dstResource.desc().baseLevel_, arraySliceIdx};
|
||||
Pal::MemoryImageCopyRegion copyRegion = {};
|
||||
copyRegion.imageSubres = ImgSubresId;
|
||||
@@ -1534,7 +1534,7 @@ bool Resource::partialMemCopyTo(VirtualGPU& gpu, const amd::Coord3D& srcOrigin,
|
||||
gpu.iCmd()->CmdCopyMemoryToImage(*iMem(), *dstResource.image_, imgLayout, 1, ©Region);
|
||||
} else if (!desc().buffer_ && dstResource.desc().buffer_) {
|
||||
Pal::MemoryImageCopyRegion copyRegion = {};
|
||||
int arraySliceIdx = img2Darray ? dstOrigin[2] : 0;
|
||||
uint32_t arraySliceIdx = img2Darray ? dstOrigin[2] : 0;
|
||||
Pal::SubresId ImgSubresId = {0, desc().baseLevel_, arraySliceIdx};
|
||||
copyRegion.imageSubres = ImgSubresId;
|
||||
copyRegion.imageOffset.x = srcOrigin[0];
|
||||
|
||||
在新工单中引用
屏蔽一个用户