SWDEV-385303 - remove bad row pitch assignment

Change-Id: If959be2fa51035c54c3b08e74711077ad52ac4c8


[ROCm/clr commit: 7e3d8243b7]
Este commit está contenido en:
victzhan authored and Victor Zhang committed 2023-08-14 15:21:56 -04:00
1 padre 28fa32a405
commit 2fab383d94
1 file changed
+2 -1
+2 -1
Ver fichero
@@ -1798,8 +1798,9 @@ void* Resource::gpuMemoryMap(size_t* pitch, uint flags, Pal::IGpuMemory* resourc
Pal::SubresLayout layout;
image_->GetSubresourceLayout(ImgSubresId, &layout);
*pitch = layout.rowPitch / elementSize();
} else {
*pitch = desc().width_;
}
*pitch = desc().width_;
if (Pal::Result::Success == resource->Map(&address)) {
return address;
} else {