Files
compute-runtime/shared/test/common/mocks/linux/mock_drm_wrappers.h
Mateusz Jablonski de465b1e6c Move drm wrappers to a separate file
Related-To: NEO-6852
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-05-17 17:58:19 +02:00

38 lines
897 B
C++

/*
* Copyright (C) 2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "shared/source/os_interface/linux/drm_wrappers.h"
namespace NEO {
struct MockExecObject : ExecObject {
uint32_t getHandle() const;
uint64_t getOffset() const;
uint64_t getReserved() const;
bool has48BAddressSupportFlag() const;
bool hasCaptureFlag() const;
bool hasAsyncFlag() const;
};
static_assert(sizeof(MockExecObject) == sizeof(ExecObject));
struct MockExecBuffer : ExecBuffer {
uint64_t getBuffersPtr() const;
uint32_t getBufferCount() const;
uint32_t getBatchLen() const;
uint32_t getBatchStartOffset() const;
uint64_t getFlags() const;
uint64_t getCliprectsPtr() const;
uint64_t getReserved() const;
bool hasUseExtensionsFlag() const;
};
static_assert(sizeof(MockExecBuffer) == sizeof(ExecBuffer));
} // namespace NEO