Add pitch programming to Blit dispatch and align max width to cacheline

Change-Id: I37a15ddc64c9e41cd4cd718133b17d572bb71ba2
Related-To: NEO-3020
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
Dunajski, Bartosz
2019-05-09 10:56:25 +02:00
committed by sys_ocldev
parent c7d7346fd0
commit 67d39b19db
5 changed files with 25 additions and 15 deletions

View File

@@ -67,6 +67,9 @@ void BlitCommandsHelper<GfxFamily>::dispatchBlitCommandsForBuffer(Buffer &buffer
bltCmd->setDestinationX2CoordinateRight(static_cast<uint32_t>(width));
bltCmd->setDestinationY2CoordinateBottom(static_cast<uint32_t>(height));
bltCmd->setDestinationPitch(static_cast<uint32_t>(width));
bltCmd->setSourcePitch(static_cast<uint32_t>(width));
bltCmd->setDestinationBaseAddress(buffer.getGraphicsAllocation()->getGpuAddress() + offset);
bltCmd->setSourceBaseAddress(hostPtrAllocation.getGpuAddress() + offset);

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2017-2018 Intel Corporation
* Copyright (C) 2017-2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -8,6 +8,8 @@
#pragma once
#include "CL/cl.h"
#include <cstdint>
// It's max SSH size per kernel (MAX_BINDING_TABLE_INDEX * 64)
const uint32_t SAMPLER_OBJECT_ID_SHIFT = 253 * 64;