fix: add missing types that require stateless access

Related-To: HSD-16020995919
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
This commit is contained in:
Katarzyna Cencelewska
2023-07-28 12:14:09 +00:00
committed by Compute-Runtime-Automation
parent 22a719d62f
commit db35790d5d
2 changed files with 6 additions and 4 deletions

View File

@@ -1417,7 +1417,9 @@ bool WddmMemoryManager::isStatelessAccessRequired(AllocationType type) {
type == AllocationType::SCRATCH_SURFACE ||
type == AllocationType::LINEAR_STREAM ||
type == AllocationType::PRIVATE_SURFACE ||
type == AllocationType::CONSTANT_SURFACE) {
type == AllocationType::CONSTANT_SURFACE ||
type == AllocationType::GLOBAL_SURFACE ||
type == AllocationType::PRINTF_SURFACE) {
return true;
}
return false;

View File

@@ -461,14 +461,15 @@ TEST_F(WddmMemoryManagerTests, givenTypeWhenCallIsStatelessAccessRequiredThenPro
AllocationType::SCRATCH_SURFACE,
AllocationType::LINEAR_STREAM,
AllocationType::PRIVATE_SURFACE,
AllocationType::CONSTANT_SURFACE}) {
AllocationType::CONSTANT_SURFACE,
AllocationType::GLOBAL_SURFACE,
AllocationType::PRINTF_SURFACE}) {
EXPECT_TRUE(wddmMemoryManager->isStatelessAccessRequired(type));
}
for (auto type : {AllocationType::BUFFER_HOST_MEMORY,
AllocationType::COMMAND_BUFFER,
AllocationType::EXTERNAL_HOST_PTR,
AllocationType::FILL_PATTERN,
AllocationType::GLOBAL_SURFACE,
AllocationType::IMAGE,
AllocationType::INDIRECT_OBJECT_HEAP,
AllocationType::INSTRUCTION_HEAP,
@@ -481,7 +482,6 @@ TEST_F(WddmMemoryManagerTests, givenTypeWhenCallIsStatelessAccessRequiredThenPro
AllocationType::MCS,
AllocationType::PIPE,
AllocationType::PREEMPTION,
AllocationType::PRINTF_SURFACE,
AllocationType::PROFILING_TAG_BUFFER,
AllocationType::SHARED_IMAGE,
AllocationType::SHARED_RESOURCE_COPY,