1 # Copyright (C) 2018 Intel Corporation. All Rights Reserved.
3 # Permission is hereby granted, free of charge, to any person obtaining a
4 # copy of this software and associated documentation files (the "Software"),
5 # to deal in the Software without restriction, including without limitation
6 # the rights to use, copy, modify, merge, publish, distribute, sublicense,
7 # and/or sell copies of the Software, and to permit persons to whom the
8 # Software is furnished to do so, subject to the following conditions:
10 # The above copyright notice and this permission notice (including the next
11 # paragraph) shall be included in all copies or substantial portions of the
14 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17 # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
22 # Provides definitions for private internal events that are only used internally
23 # to rasty for communicating information between Rasty and Archrast. One goal for
24 # ArchRast is to not pollute the Rasty code with lots of calculations, etc. that
25 # are needed to compute per draw statistics, etc.
27 event Pipeline::EarlyDepthStencilInfoSingleSample
29 uint64_t depthPassMask;
30 uint64_t stencilPassMask;
31 uint64_t coverageMask;
34 event Pipeline::EarlyDepthStencilInfoSampleRate
36 uint64_t depthPassMask;
37 uint64_t stencilPassMask;
38 uint64_t coverageMask;
41 event Pipeline::EarlyDepthStencilInfoNullPS
43 uint64_t depthPassMask;
44 uint64_t stencilPassMask;
45 uint64_t coverageMask;
48 event Pipeline::LateDepthStencilInfoSingleSample
50 uint64_t depthPassMask;
51 uint64_t stencilPassMask;
52 uint64_t coverageMask;
55 event Pipeline::LateDepthStencilInfoSampleRate
57 uint64_t depthPassMask;
58 uint64_t stencilPassMask;
59 uint64_t coverageMask;
62 event Pipeline::LateDepthStencilInfoNullPS
64 uint64_t depthPassMask;
65 uint64_t stencilPassMask;
66 uint64_t coverageMask;
69 event Pipeline::EarlyDepthInfoPixelRate
71 uint64_t depthPassCount;
76 event Pipeline::LateDepthInfoPixelRate
78 uint64_t depthPassCount;
83 event Pipeline::BackendDrawEndEvent
88 event Pipeline::FrontendDrawEndEvent
93 event Memory::MemoryAccessEvent
103 event Memory::MemoryStatsEndEvent
108 event Pipeline::TessPrimCount
113 event Pipeline::RasterTileCount
116 uint64_t rasterTiles;
119 event Pipeline::GSPrimInfo
121 uint64_t inputPrimCount;
122 uint64_t primGeneratedCount;
126 // validMask is primitives that still need to be clipped. They weren't rejected due to trivial reject or nan.
127 // clipMask is primitives that need to be clipped. So trivial accepts will be 0 while validMask for that is 1.
128 // Trivial reject is numInvocations - pop_cnt32(validMask)
129 // Trivial accept is validMask & ~clipMask
130 // Must clip count is pop_cnt32(clipMask)
131 event Pipeline::ClipInfoEvent
133 uint32_t numInvocations;
138 event Pipeline::CullInfoEvent
141 uint64_t degeneratePrimMask;
142 uint64_t backfacePrimMask;
146 event Pipeline::AlphaInfoEvent
149 uint32_t alphaTestEnable;
150 uint32_t alphaBlendEnable;
153 event SwrApi::DrawInstancedEvent
157 uint32_t numVertices;
159 uint32_t numInstances;
160 uint32_t startInstance;
165 uint32_t splitId; // Split draw count or id.
168 event SwrApi::DrawIndexedInstancedEvent
175 uint32_t numInstances;
176 uint32_t startInstance;
181 uint32_t splitId; // Split draw count or id.
184 event Shader::VSStats
186 HANDLE hStats; // SWR_SHADER_STATS
189 event Shader::HSStats
191 HANDLE hStats; // SWR_SHADER_STATS
194 event Shader::DSStats
196 HANDLE hStats; // SWR_SHADER_STATS
199 event Shader::GSStats
201 HANDLE hStats; // SWR_SHADER_STATS
204 event Shader::PSStats
206 HANDLE hStats; // SWR_SHADER_STATS
209 event Shader::CSStats
211 HANDLE hStats; // SWR_SHADER_STATS