Assign pat_index to BO during creation

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
Bartosz Dunajski
2022-04-19 19:24:19 +00:00
committed by Compute-Runtime-Automation
parent 5911515ed0
commit 06fa316a75
31 changed files with 376 additions and 256 deletions

View File

@@ -40,9 +40,11 @@ struct GT_SYSTEM_INFO;
namespace NEO {
#define I915_CONTEXT_PRIVATE_PARAM_BOOST 0x80000000
enum class AllocationType;
class BufferObject;
class DeviceFactory;
class OsContext;
class Gmm;
struct HardwareInfo;
struct RootDeviceEnvironment;
struct SystemInfo;
@@ -253,6 +255,8 @@ class Drm : public DriverModel {
MOCKABLE_VIRTUAL uint32_t notifyFirstCommandQueueCreated();
MOCKABLE_VIRTUAL void notifyLastCommandQueueDestroyed(uint32_t handle);
uint64_t getPatIndex(Gmm *gmm, AllocationType allocationType, CacheRegion cacheRegion, CachePolicy cachePolicy, bool closEnabled) const;
protected:
Drm(std::unique_ptr<HwDeviceIdDrm> &&hwDeviceIdIn, RootDeviceEnvironment &rootDeviceEnvironment);