mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-11 16:45:25 +08:00
Fix Use pitch from gmm only for tiled images in bcs
Change-Id: I2ab3a43dd937ca1288a8fb659e0f10d90f3b8b9c Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
b8c2ae4a33
commit
c5b644c473
@@ -127,10 +127,10 @@ void BlitCommandsHelper<Family>::appendBlitCommandsForImages(BlitProperties &bli
|
||||
|
||||
if (dstAllocation->getDefaultGmm()) {
|
||||
auto dstResInfo = dstAllocation->getDefaultGmm()->gmmResourceInfo->getResourceFlags()->Info;
|
||||
dstPitch = static_cast<uint32_t>(dstAllocation->getDefaultGmm()->gmmResourceInfo->getRenderPitch());
|
||||
dstQPitch = static_cast<uint32_t>(dstAllocation->getDefaultGmm()->gmmResourceInfo->getQPitch());
|
||||
if (dstResInfo.TiledY) {
|
||||
dstTileType = GMM_TILED_Y;
|
||||
dstPitch = static_cast<uint32_t>(dstAllocation->getDefaultGmm()->gmmResourceInfo->getRenderPitch());
|
||||
dstQPitch = static_cast<uint32_t>(dstAllocation->getDefaultGmm()->gmmResourceInfo->getQPitch());
|
||||
dstPitch = alignUp<uint32_t>(dstPitch, TILED_Y_PITCH_ALIGNMENT);
|
||||
} else {
|
||||
dstPitch = alignUp<uint32_t>(dstPitch, NON_TILED_PITCH_ALIGNMENT);
|
||||
@@ -138,10 +138,10 @@ void BlitCommandsHelper<Family>::appendBlitCommandsForImages(BlitProperties &bli
|
||||
}
|
||||
if (srcAllocation->getDefaultGmm()) {
|
||||
auto srcResInfo = srcAllocation->getDefaultGmm()->gmmResourceInfo->getResourceFlags()->Info;
|
||||
srcPitch = static_cast<uint32_t>(srcAllocation->getDefaultGmm()->gmmResourceInfo->getRenderPitch());
|
||||
srcQPitch = static_cast<uint32_t>(srcAllocation->getDefaultGmm()->gmmResourceInfo->getQPitch());
|
||||
if (srcResInfo.TiledY) {
|
||||
srcTileType = GMM_TILED_Y;
|
||||
srcPitch = static_cast<uint32_t>(srcAllocation->getDefaultGmm()->gmmResourceInfo->getRenderPitch());
|
||||
srcQPitch = static_cast<uint32_t>(srcAllocation->getDefaultGmm()->gmmResourceInfo->getQPitch());
|
||||
srcPitch = alignUp<uint32_t>(srcPitch, TILED_Y_PITCH_ALIGNMENT);
|
||||
} else {
|
||||
srcPitch = alignUp<uint32_t>(srcPitch, NON_TILED_PITCH_ALIGNMENT);
|
||||
|
||||
Reference in New Issue
Block a user