Fix dont use srcTile type to calculate dst pitch value

Change-Id: I0d31cd5979f092bcf826898c7034b7b50a3c3c03
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
This commit is contained in:
Maciej Plewka
2020-06-18 11:27:32 +02:00
committed by sys_ocldev
parent 0e76e9db66
commit a3bb60e17c
3 changed files with 72 additions and 2 deletions

View File

@@ -158,7 +158,7 @@ void BlitCommandsHelper<Family>::appendBlitCommandsForImages(const BlitPropertie
getBlitAllocationProperties(*dstAllocation, dstPitch, dstQPitch, dstTileType, mipTailLod);
srcPitch = (srcTileType == GMM_NOT_TILED) ? srcPitch : srcPitch / 4;
dstPitch = (srcTileType == GMM_NOT_TILED) ? dstPitch : dstPitch / 4;
dstPitch = (dstTileType == GMM_NOT_TILED) ? dstPitch : dstPitch / 4;
blitCmd.setSourcePitch(srcPitch);
blitCmd.setDestinationPitch(dstPitch);