mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 07:14:10 +08:00
refactor: remove redundant recreating vector of engines in xe kmd path
make ContextParamEngine structure more generic and populate engines by drm specific methods Related-To: NEO-10496 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
12affba420
commit
1e343053ba
@@ -12,6 +12,11 @@
|
||||
#include "shared/test/common/libult/linux/drm_mock_prelim_context.h"
|
||||
|
||||
using namespace NEO;
|
||||
template <uint32_t numEngines = 10> // 1 + max engines
|
||||
struct ContextParamEnginesI915 {
|
||||
uint64_t extensions;
|
||||
EngineClassInstance engines[numEngines];
|
||||
};
|
||||
|
||||
class DrmQueryMock : public DrmMock {
|
||||
public:
|
||||
@@ -35,7 +40,7 @@ class DrmQueryMock : public DrmMock {
|
||||
|
||||
static constexpr uint32_t maxEngineCount{9};
|
||||
ContextEnginesLoadBalance<maxEngineCount> receivedContextEnginesLoadBalance{};
|
||||
ContextParamEngines<1 + maxEngineCount> receivedContextParamEngines{};
|
||||
ContextParamEnginesI915<1 + maxEngineCount> receivedContextParamEngines{};
|
||||
|
||||
BcsInfoMask supportedCopyEnginesMask = 1;
|
||||
uint32_t i915QuerySuccessCount = std::numeric_limits<uint32_t>::max();
|
||||
|
||||
Reference in New Issue
Block a user