Add initial support for KernelArgsBuffer allocation

Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
Dunajski, Bartosz
2022-08-03 11:54:08 +00:00
committed by Compute-Runtime-Automation
parent d3796b2b2d
commit 98d776867f
42 changed files with 147 additions and 40 deletions

View File

@ -12,6 +12,7 @@
#include "shared/source/gmm_helper/gmm_helper.h"
#include "shared/source/helpers/cache_policy.h"
#include "shared/source/helpers/hw_helper.h"
#include "shared/source/helpers/logical_state_helper.h"
#include "shared/source/memory_manager/graphics_allocation.h"
#include "shared/test/common/helpers/unit_test_helper.h"
#include "shared/test/common/libult/ult_command_stream_receiver.h"
@ -152,6 +153,16 @@ struct UltCommandStreamReceiverTest
commandStreamReceiver.lastSentUseGlobalAtomics = false;
commandStreamReceiver.streamProperties.stateComputeMode.setProperties(0, GrfConfig::DefaultGrfNumber,
hwHelper.getDefaultThreadArbitrationPolicy(), pDevice->getPreemptionMode(), *defaultHwInfo);
auto logicalStateHelper = commandStreamReceiver.getLogicalStateHelper();
if (logicalStateHelper) {
uint8_t buffer[512] = {};
LinearStream tempStream(buffer, sizeof(buffer));
EncodeKernelArgsBuffer<GfxFamily>::encodeKernelArgsBufferCmds(commandStreamReceiver.getKernelArgsBufferAllocation(), logicalStateHelper);
logicalStateHelper->writeStreamInline(tempStream, false);
}
}
template <typename GfxFamily>