Skip to content

Commit dded0aa

Browse files
kgibalaCompute-Runtime-Automation
authored andcommitted
Remove unnecessary program of default value for allocation flags
According to regression, remove setting value for CL_MEM_ALLOC_DEFAULT_INTEL in MemoryPropertiesFlags Related-To: NEO-4053 Change-Id: I1761bbf2ed8b977b7e96cebd38040c3977998b63 Signed-off-by: Krzysztof Gibala <[email protected]>
1 parent bb248d6 commit dded0aa

File tree

3 files changed

+0
-8
lines changed

3 files changed

+0
-8
lines changed

core/memory_properties/memory_properties_flags_common.inl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ struct MemoryFlags {
2828

2929
struct MemoryAllocFlags {
3030
uint32_t allocWriteCombined : 1;
31-
uint32_t allocDefault : 1;
3231
};
3332

3433
} // namespace NEO

runtime/helpers/memory_properties_flags_helpers_base.inl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,6 @@ MemoryPropertiesFlags MemoryPropertiesFlagsParser::createMemoryPropertiesFlags(c
7676
memoryPropertiesFlags.allocFlags.allocWriteCombined = true;
7777
}
7878

79-
if (allocflags == CL_MEM_ALLOC_DEFAULT_INTEL) {
80-
memoryPropertiesFlags.allocFlags.allocDefault = true;
81-
}
82-
8379
addExtraMemoryPropertiesFlags(memoryPropertiesFlags, flags, flagsIntel);
8480

8581
return memoryPropertiesFlags;

unit_tests/helpers/memory_properties_flags_helpers_tests.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,6 @@ TEST(MemoryPropertiesFlags, givenValidPropertiesWhenCreateMemoryPropertiesFlagsT
6262

6363
properties = MemoryPropertiesFlagsParser::createMemoryPropertiesFlags(0, 0, CL_MEM_ALLOC_WRITE_COMBINED_INTEL);
6464
EXPECT_TRUE(properties.allocFlags.allocWriteCombined);
65-
66-
properties = MemoryPropertiesFlagsParser::createMemoryPropertiesFlags(0, 0, CL_MEM_ALLOC_DEFAULT_INTEL);
67-
EXPECT_TRUE(properties.allocFlags.allocDefault);
6865
}
6966

7067
TEST(MemoryPropertiesFlags, givenClMemForceLinearStorageFlagWhenCreateMemoryPropertiesFlagsThenReturnProperValue) {

0 commit comments

Comments
 (0)