mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 05:56:36 +08:00
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:
committed by
sys_ocldev
parent
c7d7346fd0
commit
67d39b19db
@@ -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);
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user