Files
compute-runtime/shared/source/helpers/dirty_state_helpers.h
Fabian Zwoliński 674c4a15ad fix: use correct gpu address when bindless heaps helper is enabled
Related-To: NEO-7063
Signed-off-by: Fabian Zwoliński <fabian.zwolinski@intel.com>
2024-08-05 15:09:57 +02:00

26 lines
502 B
C++

/*
* Copyright (C) 2020-2024 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include <cstddef>
#include <cstdint>
namespace NEO {
class IndirectHeap;
class HeapDirtyState {
public:
bool updateAndCheck(const IndirectHeap *heap);
bool updateAndCheck(const IndirectHeap *heap,
const uint64_t comparedGpuAddress, const size_t comparedSize);
protected:
uint64_t gpuBaseAddress = 0llu;
size_t sizeInPages = 0u;
};
} // namespace NEO