Skip to content

Commit ea09541

Browse files
Stop using cache policy defines.
- Replaced by Hardware Helper code. Change-Id: I55026ee33fcaaffbfb529e1878ae4f7033f62ee5 Signed-off-by: Mrozek, Michal <[email protected]>
1 parent 6566eb3 commit ea09541

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

runtime/helpers/cache_policy.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
#include "runtime/gmm_helper/gmm_lib.h"
1010

1111
namespace CacheSettings {
12-
constexpr uint32_t l3CacheOn = GMM_RESOURCE_USAGE_OCL_BUFFER;
13-
constexpr uint32_t l3CacheOff = GMM_RESOURCE_USAGE_OCL_BUFFER_CACHELINE_MISALIGNED;
1412
constexpr uint32_t unknownMocs = GMM_RESOURCE_USAGE_UNKNOWN;
1513
} // namespace CacheSettings
1614

unit_tests/command_stream/command_stream_receiver_flush_task_1_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ HWTEST_F(CommandStreamReceiverFlushTaskTests, stateBaseAddressProgrammingShouldM
424424
typedef typename FamilyType::STATE_BASE_ADDRESS STATE_BASE_ADDRESS;
425425
auto gmmHelper = pDevice->getGmmHelper();
426426
auto stateHeapMocs = gmmHelper->getMOCS(GMM_RESOURCE_USAGE_OCL_STATE_HEAP_BUFFER);
427-
auto l3CacheOnMocs = gmmHelper->getMOCS(CacheSettings::l3CacheOn);
427+
auto l3CacheOnMocs = gmmHelper->getMOCS(GMM_RESOURCE_USAGE_OCL_BUFFER);
428428
auto &commandStreamReceiver = pDevice->getUltCommandStreamReceiver<FamilyType>();
429429
flushTask(commandStreamReceiver);
430430

unit_tests/command_stream/command_stream_receiver_flush_task_2_tests.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -840,11 +840,6 @@ HWTEST_F(CommandStreamReceiverFlushTaskTests, InForced32BitAllocationsModeStore3
840840
}
841841
}
842842

843-
TEST(CacheSettings, GivenCacheSettingWhenCheckedForValuesThenProperValuesAreSelected) {
844-
EXPECT_EQ(static_cast<uint32_t>(GMM_RESOURCE_USAGE_OCL_BUFFER_CACHELINE_MISALIGNED), CacheSettings::l3CacheOff);
845-
EXPECT_EQ(static_cast<uint32_t>(GMM_RESOURCE_USAGE_OCL_BUFFER), CacheSettings::l3CacheOn);
846-
}
847-
848843
HWTEST_F(UltCommandStreamReceiverTest, addPipeControlWithFlushAllCaches) {
849844
typedef typename FamilyType::PIPE_CONTROL PIPE_CONTROL;
850845
DebugManagerStateRestore dbgRestorer;

0 commit comments

Comments
 (0)