Debian Codegraph @

shared/test/common/helpers/mock_product_helper_hw.h

raw symbols SCIP
1 /*
2 * Copyright (C) 2022-2026 Intel Corporation
3 *
4 * SPDX-License-Identifier: MIT
5 *
6 */
7
8 #pragma once
9 #include "shared/source/helpers/hw_info.h"
10 #include "shared/source/os_interface/product_helper.h"
11 #include "shared/source/os_interface/product_helper_hw.h"
12
13 namespace NEO {
14
15 template <PRODUCT_FAMILY productFamily>
16 struct MockProductHelperHw : NEO::ProductHelperHw<productFamily> {
17 using ProductHelper::getDefaultLocalMemoryAccessMode;
18 std::vector<int32_t> getKernelSupportedThreadArbitrationPolicies() const override;
19 bool isCooperativeEngineSupported(const HardwareInfo &hwInfo) const override;
20 bool getUuid(NEO::DriverModel *driverModel, const uint32_t subDeviceCount, const uint32_t deviceIndex, std::array<uint8_t, ProductHelper::uuidSize> &uuid) const override;
21 uint32_t getSteppingFromHwRevId(const HardwareInfo &hwInfo) const override;
22 int configureHardwareCustom(HardwareInfo *hwInfo, OSInterface *osIface) const override;
23 uint64_t getDeviceMemoryPhysicalSizeInBytes(const OSInterface *osIface, uint32_t subDeviceIndex) const override;
24 uint32_t getDeviceMemoryMaxClkRate(const HardwareInfo &hwInfo, const OSInterface *osIface, uint32_t subDeviceIndex) const override;
25 uint32_t getL1CachePolicy(bool isDebuggerActive) const override;
26 bool isUnlockingLockedPtrNecessary(const HardwareInfo &hwInfo) const override;
27 const SupportedNumGrfs getSupportedNumGrfs(const ReleaseHelper *releaseHelper) const override;
28 aub_stream::EngineType getDefaultCopyEngine() const override;
29 bool isBufferPoolAllocatorSupported() const override;
30 bool useAdditionalBlitProperties(const BlitProperties &blitProperties) const override { return enableAdditionalBlitProperties; }
31
32 bool use128MbEdram = false;
33 bool enableMidThreadPreemption = false;
34 bool enableThreadGroupPreemption = false;
35 bool enableMidBatchPreemption = false;
36 bool failOnConfigureHardwareCustom = false;
37 bool isCooperativeEngineSupportedValue = true;
38 bool returnedIsUnlockingLockedPtrNecessary = false;
39 bool isBufferPoolAllocatorSupportedValue = true;
40 bool enableAdditionalBlitProperties = false;
41 uint32_t returnedStepping = 0;
42 uint32_t returnedL1CachePolicy = 0;
43 uint32_t returnedL1CachePolicyIfDebugger = 0;
44 uint32_t returnedExtraKernelCapabilities = 0;
45 std::vector<int32_t> threadArbPolicies = {};
46 aub_stream::EngineType mockDefaultCopyEngine = aub_stream::EngineType::ENGINE_BCS;
47 };
48 } // namespace NEO