mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 08:53:55 +08:00
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:
committed by
Compute-Runtime-Automation
parent
22a719d62f
commit
db35790d5d
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user