mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 22:12:59 +08:00
feature: initial 64b in-order CmdList support
Related-To: NEO-7966 Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
698a3ed3de
commit
d3d5da1f72
@@ -10,6 +10,7 @@
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <limits>
|
||||
|
||||
inline const int ptrGarbageContent[16] = {
|
||||
0x0131, 0x133, 0xA, 0xEF,
|
||||
@@ -71,3 +72,11 @@ inline void patchWithRequiredSize(void *memoryToBePatched, uint32_t patchSize, u
|
||||
inline uint64_t castToUint64(const void *address) {
|
||||
return static_cast<uint64_t>(reinterpret_cast<uintptr_t>(const_cast<void *>(address)));
|
||||
}
|
||||
|
||||
inline uint32_t getLowPart(uint64_t value) {
|
||||
return static_cast<uint32_t>(value & std::numeric_limits<uint32_t>::max());
|
||||
}
|
||||
|
||||
inline uint32_t getHighPart(uint64_t value) {
|
||||
return static_cast<uint32_t>(value >> 32);
|
||||
}
|
||||
Reference in New Issue
Block a user