mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-09 22:43:00 +08:00
Enable RelaxedOrdering for XE_HPC Immediate cmd lists
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com> Related-To: NEO-7458
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
43ddabd8e6
commit
3b91cc1b50
@@ -7,6 +7,7 @@
|
||||
|
||||
#include "shared/source/command_stream/command_stream_receiver_with_aub_dump.h"
|
||||
#include "shared/source/command_stream/preemption.h"
|
||||
#include "shared/source/direct_submission/relaxed_ordering_helper.h"
|
||||
#include "shared/source/helpers/windows/gmm_callbacks.h"
|
||||
#include "shared/source/memory_manager/internal_allocation_storage.h"
|
||||
#include "shared/source/os_interface/sys_calls_common.h"
|
||||
@@ -1149,11 +1150,14 @@ HWTEST_TEMPLATED_F(WddmCommandStreamMockGdiTest, givenDirectSubmissionEnabledOnR
|
||||
size_t actualDispatchSize = directSubmission->ringCommandStream.getUsed();
|
||||
size_t expectedSize = directSubmission->getSizeSemaphoreSection(false) +
|
||||
Dispatcher::getSizePreemption() +
|
||||
directSubmission->getSizeDispatch(false);
|
||||
directSubmission->getSizeDispatch(false, false);
|
||||
|
||||
if (directSubmission->miMemFenceRequired) {
|
||||
expectedSize += directSubmission->getSizeSystemMemoryFenceAddress();
|
||||
}
|
||||
if (directSubmission->isRelaxedOrderingEnabled()) {
|
||||
expectedSize += RelaxedOrderingHelper::getSizeRegistersInit<FamilyType>();
|
||||
}
|
||||
|
||||
EXPECT_EQ(expectedSize, actualDispatchSize);
|
||||
memoryManager->freeGraphicsMemory(commandBuffer);
|
||||
@@ -1190,11 +1194,14 @@ HWTEST_TEMPLATED_F(WddmCommandStreamMockGdiTest, givenDirectSubmissionEnabledOnB
|
||||
size_t actualDispatchSize = directSubmission->ringCommandStream.getUsed();
|
||||
size_t expectedSize = directSubmission->getSizeSemaphoreSection(false) +
|
||||
Dispatcher::getSizePreemption() +
|
||||
directSubmission->getSizeDispatch(false);
|
||||
directSubmission->getSizeDispatch(false, false);
|
||||
|
||||
if (directSubmission->miMemFenceRequired) {
|
||||
expectedSize += directSubmission->getSizeSystemMemoryFenceAddress();
|
||||
}
|
||||
if (directSubmission->isRelaxedOrderingEnabled()) {
|
||||
expectedSize += RelaxedOrderingHelper::getSizeRegistersInit<FamilyType>();
|
||||
}
|
||||
|
||||
EXPECT_EQ(expectedSize, actualDispatchSize);
|
||||
memoryManager->freeGraphicsMemory(commandBuffer);
|
||||
|
||||
Reference in New Issue
Block a user