SWDEV-385303 - remove bad row pitch assignment

Change-Id: If959be2fa51035c54c3b08e74711077ad52ac4c8


[ROCm/clr commit: 7e3d8243b7]
Tento commit je obsažen v:
victzhan
2023-08-03 13:03:57 -04:00
odevzdal Victor Zhang
rodič 28fa32a405
revize 2fab383d94
+2 -1
Zobrazit soubor
@@ -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 {