2017-12-21 07:45:38 +08:00
|
|
|
/*
|
2018-09-18 15:11:08 +08:00
|
|
|
* Copyright (C) 2017-2018 Intel Corporation
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
2018-09-18 15:11:08 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
#include <cstdlib>
|
2018-05-11 20:20:32 +08:00
|
|
|
#include <cstdint>
|
2017-12-21 07:45:38 +08:00
|
|
|
|
|
|
|
namespace OCLRT {
|
2018-05-11 20:20:32 +08:00
|
|
|
class IndirectHeap;
|
2017-12-21 07:45:38 +08:00
|
|
|
|
|
|
|
class HeapDirtyState {
|
|
|
|
public:
|
2018-05-11 20:20:32 +08:00
|
|
|
bool updateAndCheck(const IndirectHeap *heap);
|
2017-12-21 07:45:38 +08:00
|
|
|
|
|
|
|
protected:
|
2018-05-11 20:20:32 +08:00
|
|
|
uint64_t gpuBaseAddress = 0llu;
|
|
|
|
size_t sizeInPages = 0u;
|
2017-12-21 07:45:38 +08:00
|
|
|
};
|
|
|
|
} // namespace OCLRT
|