mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
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:
@ -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;
|
||||
|
Reference in New Issue
Block a user