Debian Codegraph @

shared/source/helpers/windows/gmm_callbacks_tgllp_and_later.inl

raw symbols SCIP
1 /*
2 * Copyright (C) 2019-2024 Intel Corporation
3 *
4 * SPDX-License-Identifier: MIT
5 *
6 */
7
8 #include "shared/source/command_stream/aub_command_stream_receiver_hw.h"cxx . . $ `<file>/shared/source/command_stream/aub_command_stream_receiver_hw.h`/
9 #include "shared/source/command_stream/command_stream_receiver_hw.h"cxx . . $ `<file>/shared/source/command_stream/command_stream_receiver_hw.h`/
10 #include "shared/source/command_stream/command_stream_receiver_with_aub_dump.h"cxx . . $ `<file>/shared/source/command_stream/command_stream_receiver_with_aub_dump.h`/
11 #include "shared/source/helpers/gfx_core_helper.h"cxx . . $ `<file>/shared/source/helpers/gfx_core_helper.h`/
12 #include "shared/source/helpers/windows/gmm_callbacks.h"cxx . . $ `<file>/shared/source/helpers/windows/gmm_callbacks.h`/
13 #include "shared/source/os_interface/windows/wddm_device_command_stream.h"cxx . . $ `<file>/shared/source/os_interface/windows/wddm_device_command_stream.h`/
14
15 namespace NEOcxx . . $ NEO/ {
16
17 template <typename GfxFamily>
18 long __stdcallcxx . . $ `third_party/DirectX-Headers/include/wsl/winadapter.h:214:9`! DeviceCallbackscxx . . $ NEO/DeviceCallbacks#<GfxFamily>::notifyAubCapturecxx . . $ NEO/DeviceCallbacks#notifyAubCapture(5941a16b83e1db06).(void *csrHandle, uint64_tcxx . . $ uint64_t# gfxAddress, size_t gfxSize, bool allocate) {
19 auto csr = reinterpret_cast<CommandStreamReceiverHwcxx . . $ NEO/CommandStreamReceiverHw#<GfxFamily> *>(csrHandle);
20
21 if (obtainCsrTypeFromIntegerValuecxx . . $ NEO/obtainCsrTypeFromIntegerValue(b134542df10fecd5).(debugManagercxx . . $ NEO/debugManager..flagscxx . . $ NEO/DebugSettingsManager#flags..SetCommandStreamReceivercxx . . $ NEO/DebugVariables#SetCommandStreamReceiver..getcxx . . $ NEO/DebugVarBase#get(8f5363d873dd4781).(), CommandStreamReceiverTypecxx . . $ NEO/CommandStreamReceiverType#::hardwarecxx . . $ NEO/CommandStreamReceiverType#hardware.) == CommandStreamReceiverTypecxx . . $ NEO/CommandStreamReceiverType#::hardwareWithAubcxx . . $ NEO/CommandStreamReceiverType#hardwareWithAub.) {
22 auto csrWithAub = static_cast<CommandStreamReceiverWithAUBDumpcxx . . $ NEO/CommandStreamReceiverWithAUBDump#<WddmCommandStreamReceivercxx . . $ NEO/WddmCommandStreamReceiver#<GfxFamily>> *>(csr);
23 auto aubCsr = static_cast<AUBCommandStreamReceiverHwcxx . . $ NEO/AUBCommandStreamReceiverHw#<GfxFamily> *>(csrWithAub->aubCSR.get());
24 if (allocate) {
25 AllocationViewcxx . . $ NEO/AllocationView# externalAllocationcxx . . $ std/pair#pair(14d64bafa7379ebc).(gfxAddress, gfxSize);
26 aubCsr->makeResidentExternal(externalAllocation);
27 } else {
28 aubCsr->makeNonResidentExternal(gfxAddress);
29 }
30 }
31
32 return 1;
33 }
34
35 template <typename GfxFamily>
36 int __stdcallcxx . . $ `third_party/DirectX-Headers/include/wsl/winadapter.h:214:9`! TTCallbackscxx . . $ NEO/TTCallbacks#<GfxFamily>::writeL3Addresscxx . . $ NEO/TTCallbacks#writeL3Address(9a5c82343a5ae9bc).(void *queueHandle, uint64_tcxx . . $ uint64_t# l3GfxAddress, uint64_tcxx . . $ uint64_t# regOffset) {
37 auto csr = reinterpret_cast<CommandStreamReceiverHwcxx . . $ NEO/CommandStreamReceiverHw#<GfxFamily> *>(queueHandle);
38
39 LriHelpercxx . . $ NEO/LriHelper#<GfxFamily>::program(&csr->getCS(0),
40 static_cast<uint32_tcxx . . $ uint32_t#>(regOffset & 0xFFFFFFFF),
41 static_cast<uint32_tcxx . . $ uint32_t#>(l3GfxAddress & 0xFFFFFFFF),
42 true,
43 false);
44
45 LriHelpercxx . . $ NEO/LriHelper#<GfxFamily>::program(&csr->getCS(0),
46 static_cast<uint32_tcxx . . $ uint32_t#>(regOffset >> 32),
47 static_cast<uint32_tcxx . . $ uint32_t#>(l3GfxAddress >> 32),
48 true,
49 false);
50
51 return 1;
52 }
53
54 } // namespace NEO