mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +08:00
Use DeviceBitfield in applyMemoryFlags()
Change-Id: I62563df2424f802509fa5669de2fe61e8918e96f Signed-off-by: Pawel Wilma <pawel.wilma@intel.com>
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user