mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-12 17:33:00 +08:00
Query HW IP version using ioctl helper prelim Related-To: NEO-7457 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
42 lines
1.1 KiB
C++
42 lines
1.1 KiB
C++
/*
|
|
* Copyright (C) 2022 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "shared/test/common/helpers/default_hw_info.h"
|
|
#include "shared/test/common/libult/linux/drm_mock.h"
|
|
#include "shared/test/common/libult/linux/drm_mock_prelim_context.h"
|
|
|
|
using namespace NEO;
|
|
|
|
class DrmQueryMock : public DrmMock {
|
|
public:
|
|
using Drm::rootDeviceEnvironment;
|
|
|
|
DrmQueryMock(RootDeviceEnvironment &rootDeviceEnvironment);
|
|
|
|
DrmMockPrelimContext context{
|
|
nullptr,
|
|
rootDeviceEnvironment,
|
|
getCacheInfo(),
|
|
failRetTopology,
|
|
supportedCopyEnginesMask,
|
|
contextDebugSupported,
|
|
};
|
|
|
|
static constexpr uint32_t maxEngineCount{9};
|
|
ContextEnginesLoadBalance<maxEngineCount> receivedContextEnginesLoadBalance{};
|
|
ContextParamEngines<1 + maxEngineCount> receivedContextParamEngines{};
|
|
|
|
BcsInfoMask supportedCopyEnginesMask = 1;
|
|
uint32_t i915QuerySuccessCount = std::numeric_limits<uint32_t>::max();
|
|
int storedRetValForSetParamEngines{0};
|
|
|
|
int handleRemainingRequests(DrmIoctl request, void *arg) override;
|
|
virtual bool handleQueryItem(void *queryItem);
|
|
};
|