Change L1 cache setup

Related-To: NEO-4942
Change-Id: I9f8c3a5aa4d3dee57595ac287df64d8c9b41a9cb
Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
This commit is contained in:
Krzysztof Gibala
2020-08-05 11:09:25 +02:00
parent da0ee40994
commit 44d1ec2e23
12 changed files with 86 additions and 83 deletions

View File

@ -108,7 +108,7 @@ struct UltCommandStreamReceiverTest
}
template <typename GfxFamily>
void configureCSRtoNonDirtyState() {
void configureCSRtoNonDirtyState(bool isL1CacheEnabled) {
bool slmUsed = false;
if (DebugManager.flags.ForceSLML3Config.get()) {
slmUsed = true;
@ -122,7 +122,7 @@ struct UltCommandStreamReceiverTest
commandStreamReceiver.lastPreemptionMode = pDevice->getPreemptionMode();
commandStreamReceiver.setMediaVFEStateDirty(false);
auto gmmHelper = pDevice->getGmmHelper();
auto mocsIndex = gmmHelper->getMOCS(GMM_RESOURCE_USAGE_OCL_BUFFER);
auto mocsIndex = isL1CacheEnabled ? gmmHelper->getMOCS(GMM_RESOURCE_USAGE_OCL_BUFFER_CONST) : gmmHelper->getMOCS(GMM_RESOURCE_USAGE_OCL_BUFFER);
commandStreamReceiver.latestSentStatelessMocsConfig = mocsIndex >> 1;
commandStreamReceiver.lastSentL3Config = L3Config;