SWDEV-385303 - remove bad row pitch assignment
Change-Id: If959be2fa51035c54c3b08e74711077ad52ac4c8
[ROCm/clr commit: 7e3d8243b7]
This commit is contained in:
@@ -1798,8 +1798,9 @@ void* Resource::gpuMemoryMap(size_t* pitch, uint flags, Pal::IGpuMemory* resourc
|
|||||||
Pal::SubresLayout layout;
|
Pal::SubresLayout layout;
|
||||||
image_->GetSubresourceLayout(ImgSubresId, &layout);
|
image_->GetSubresourceLayout(ImgSubresId, &layout);
|
||||||
*pitch = layout.rowPitch / elementSize();
|
*pitch = layout.rowPitch / elementSize();
|
||||||
|
} else {
|
||||||
|
*pitch = desc().width_;
|
||||||
}
|
}
|
||||||
*pitch = desc().width_;
|
|
||||||
if (Pal::Result::Success == resource->Map(&address)) {
|
if (Pal::Result::Success == resource->Map(&address)) {
|
||||||
return address;
|
return address;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user