mirror of
https://github.com/intel/compute-runtime.git
synced 2025-11-15 10:14:56 +08:00
Pass active partitions from dispatched kernel to context
Related-To: NEO-6244 Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
85a52b7702
commit
0b64ecba3f
@@ -32,6 +32,7 @@ struct WalkerPartitionArgs {
|
||||
bool useAtomicsForSelfCleanup = false;
|
||||
bool initializeWparidRegister = false;
|
||||
bool emitPipeControlStall = false;
|
||||
bool preferredStaticPartitioning = false;
|
||||
};
|
||||
|
||||
template <typename GfxFamily>
|
||||
@@ -457,6 +458,7 @@ uint64_t computeControlSectionOffset(WalkerPartitionArgs &args) {
|
||||
if (args.emitSelfCleanup) {
|
||||
size += computeSelfCleanupSectionSize<GfxFamily>(args.useAtomicsForSelfCleanup);
|
||||
}
|
||||
size += args.preferredStaticPartitioning ? sizeof(LOAD_REGISTER_MEM<GfxFamily>) : 0u;
|
||||
return size;
|
||||
}
|
||||
|
||||
@@ -587,6 +589,10 @@ void constructDynamicallyPartitionedCommandBuffer(void *cpuPointer,
|
||||
programTilesSynchronizationWithAtomics<GfxFamily>(currentBatchBufferPointer, totalBytesProgrammed, tileAtomicAddress, args.tileCount);
|
||||
}
|
||||
|
||||
if (args.preferredStaticPartitioning) {
|
||||
programMiLoadRegisterMem<GfxFamily>(currentBatchBufferPointer, totalBytesProgrammed, args.workPartitionAllocationGpuVa, wparidCCSOffset);
|
||||
}
|
||||
|
||||
//this bb start goes to the end of partitioned command buffer
|
||||
programMiBatchBufferStart<GfxFamily>(
|
||||
currentBatchBufferPointer,
|
||||
|
||||
Reference in New Issue
Block a user