mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 23:56:39 +08:00
- this feature is part of making compute walker command view - compute walker is programed for implicit scaling but not dispatched - together with new flag, comes the refactor to reduce number of arguments Related-To: NEO-11972 Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
43 lines
1.3 KiB
C++
43 lines
1.3 KiB
C++
/*
|
|
* Copyright (C) 2021-2024 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "shared/source/command_container/implicit_scaling.h"
|
|
#include "shared/source/command_stream/linear_stream.h"
|
|
#include "shared/test/common/helpers/debug_manager_state_restore.h"
|
|
#include "shared/test/common/helpers/variable_backup.h"
|
|
#include "shared/test/common/mocks/mock_graphics_allocation.h"
|
|
#include "shared/test/unit_test/fixtures/command_container_fixture.h"
|
|
|
|
#include <memory>
|
|
|
|
using namespace NEO;
|
|
|
|
struct ImplicitScalingFixture : public CommandEncodeStatesFixture {
|
|
void setUp();
|
|
void tearDown();
|
|
|
|
ImplicitScalingDispatchCommandArgs createDispatchCommandArgs(uint64_t workPartitionAllocationAddress, uint32_t partitionCount);
|
|
|
|
static constexpr uint64_t gpuVa = (1ull << 48);
|
|
static constexpr size_t bufferSize = 1024u;
|
|
DebugManagerStateRestore restorer;
|
|
LinearStream commandStream;
|
|
MockGraphicsAllocation cmdBufferAlloc;
|
|
HardwareInfo testHardwareInfo = {};
|
|
std::unique_ptr<VariableBackup<bool>> apiSupportBackup;
|
|
std::unique_ptr<VariableBackup<bool>> osLocalMemoryBackup;
|
|
DeviceBitfield singleTile;
|
|
DeviceBitfield twoTile;
|
|
void *alignedMemory = nullptr;
|
|
bool dcFlushFlag = false;
|
|
bool forceExecutionOnSingleTileFlag = false;
|
|
};
|
|
|
|
using ImplicitScalingTests = Test<ImplicitScalingFixture>;
|