diff --git a/runtime/gmm_helper/gmm.cpp b/runtime/gmm_helper/gmm.cpp index 8571c98b61..ac863a2e7a 100644 --- a/runtime/gmm_helper/gmm.cpp +++ b/runtime/gmm_helper/gmm.cpp @@ -47,7 +47,7 @@ Gmm::Gmm(const void *alignedPtr, size_t alignedSize, bool uncacheable, bool pref } applyAuxFlagsForBuffer(preferRenderCompressed); - applyMemoryFlags(systemMemoryPool); + applyMemoryFlags(systemMemoryPool, devicesBitfield); gmmResourceInfo.reset(GmmResourceInfo::create(&resourceParams)); } diff --git a/runtime/gmm_helper/gmm.h b/runtime/gmm_helper/gmm.h index 711b2ab12a..4614e04347 100644 --- a/runtime/gmm_helper/gmm.h +++ b/runtime/gmm_helper/gmm.h @@ -37,7 +37,7 @@ class Gmm { void applyAuxFlagsForImage(ImageInfo &imgInfo); void applyAuxFlagsForBuffer(bool preferRenderCompression); - void applyMemoryFlags(bool systemMemoryPool); + void applyMemoryFlags(bool systemMemoryPool, DevicesBitfield &devicesBitfield); bool unifiedAuxTranslationCapable() const; bool hasMultisampleControlSurface() const; diff --git a/runtime/gmm_helper/gmm_utils.cpp b/runtime/gmm_helper/gmm_utils.cpp index 123cbd7b18..2ebea6117c 100644 --- a/runtime/gmm_helper/gmm_utils.cpp +++ b/runtime/gmm_helper/gmm_utils.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018 Intel Corporation + * Copyright (C) 2018-2019 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -38,4 +38,4 @@ GMM_CUBE_FACE_ENUM GmmHelper::getCubeFaceIndex(uint32_t target) { void Gmm::applyAuxFlagsForImage(ImageInfo &imgInfo) {} void Gmm::applyAuxFlagsForBuffer(bool preferRenderCompression) {} -void Gmm::applyMemoryFlags(bool systemMemoryPool) { this->useSystemMemoryPool = systemMemoryPool; } +void Gmm::applyMemoryFlags(bool systemMemoryPool, DevicesBitfield &devicesBitfield) { this->useSystemMemoryPool = systemMemoryPool; }