2019-04-03 21:59:31 +08:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2019 Intel Corporation
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
|
|
|
|
namespace NEO {
|
|
|
|
class Buffer;
|
|
|
|
class GraphicsAllocation;
|
|
|
|
class LinearStream;
|
|
|
|
|
|
|
|
template <typename GfxFamily>
|
|
|
|
struct BlitCommandsHelper {
|
|
|
|
static size_t estimateBlitCommandsSize(uint64_t copySize);
|
2019-05-16 15:34:29 +08:00
|
|
|
static void dispatchBlitCommandsForBuffer(Buffer &dstBuffer, LinearStream &linearStream, GraphicsAllocation &srcAllocation, uint64_t copySize);
|
|
|
|
static void appendBlitCommandsForBuffer(Buffer &dstBuffer, GraphicsAllocation &srcAllocation, typename GfxFamily::XY_COPY_BLT &blitCmd);
|
2019-04-03 21:59:31 +08:00
|
|
|
};
|
|
|
|
} // namespace NEO
|