SWDEV-385303 - remove bad row pitch assignment

Change-Id: If959be2fa51035c54c3b08e74711077ad52ac4c8
This commit is contained in:
victzhan
2023-08-03 13:03:57 -04:00
committed by Victor Zhang
parent 8a538b5639
commit 7e3d8243b7
+2 -1
View File
@@ -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 {