1 # Copyright (C) 2016 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 events.
29 IndexedInstancedSplit = 3
32 event ThreadStartApiEvent
36 event ThreadStartWorkerEvent
49 uint32_t numInstances;
50 uint32_t startInstance;
55 uint32_t splitId; // Split draw count or id.
61 uint32_t threadGroupCountX;
62 uint32_t threadGroupCountY;
63 uint32_t threadGroupCountZ;
72 ///@brief API Stat: Synchonization event.
78 ///@brief API Stat: Invalidate hot tiles (i.e. tile cache)
79 event SwrInvalidateTilesEvent
84 ///@brief API Stat: Invalidate and discard hot tiles within pixel region
85 event SwrDiscardRectEvent
90 ///@brief API Stat: Flush tiles out to memory that is typically owned by driver (e.g. Flush RT cache)
91 event SwrStoreTilesEvent
96 event FrontendStatsEvent
99 uint64_t counter IaVertices;
100 uint64_t counter IaPrimitives;
101 uint64_t counter VsInvocations;
102 uint64_t counter HsInvocations;
103 uint64_t counter DsInvocations;
104 uint64_t counter GsInvocations;
105 uint64_t counter GsPrimitives;
106 uint64_t counter CInvocations;
107 uint64_t counter CPrimitives;
108 uint64_t counter SoPrimStorageNeeded0;
109 uint64_t counter SoPrimStorageNeeded1;
110 uint64_t counter SoPrimStorageNeeded2;
111 uint64_t counter SoPrimStorageNeeded3;
112 uint64_t counter SoNumPrimsWritten0;
113 uint64_t counter SoNumPrimsWritten1;
114 uint64_t counter SoNumPrimsWritten2;
115 uint64_t counter SoNumPrimsWritten3;
118 event BackendStatsEvent
121 uint64_t counter DepthPassCount;
122 uint64_t counter PsInvocations;
123 uint64_t counter CsInvocations;
127 event EarlyZSingleSample
130 uint64_t counter passCount;
131 uint64_t counter failCount;
134 event LateZSingleSample
137 uint64_t counter passCount;
138 uint64_t counter failCount;
141 event EarlyStencilSingleSample
144 uint64_t counter passCount;
145 uint64_t counter failCount;
148 event LateStencilSingleSample
151 uint64_t counter passCount;
152 uint64_t counter failCount;
155 event EarlyZSampleRate
158 uint64_t counter passCount;
159 uint64_t counter failCount;
162 event LateZSampleRate
165 uint64_t counter passCount;
166 uint64_t counter failCount;
169 event EarlyStencilSampleRate
172 uint64_t counter passCount;
173 uint64_t counter failCount;
176 event LateStencilSampleRate
179 uint64_t counter passCount;
180 uint64_t counter failCount;
183 // Total Early-Z counts, SingleSample and SampleRate
187 uint64_t counter passCount;
188 uint64_t counter failCount;
191 // Total LateZ counts, SingleSample and SampleRate
195 uint64_t counter passCount;
196 uint64_t counter failCount;
199 // Total EarlyStencil counts, SingleSample and SampleRate
203 uint64_t counter passCount;
204 uint64_t counter failCount;
207 // Total LateStencil counts, SingleSample and SampleRate
211 uint64_t counter passCount;
212 uint64_t counter failCount;
218 uint64_t counter passCount;
219 uint64_t counter failCount;
222 event EarlyStencilNullPS
225 uint64_t counter passCount;
226 uint64_t counter failCount;
229 event EarlyZPixelRate
232 uint64_t counter passCount;
233 uint64_t counter failCount;
239 uint64_t counter passCount;
240 uint64_t counter failCount;
247 uint64_t counter passCount;
248 uint64_t counter failCount;
254 uint64_t counter passCount;
255 uint64_t counter failCount;
261 uint64_t counter passCount;
262 uint64_t counter failCount;
268 uint64_t counter passCount;
269 uint64_t counter failCount;
275 uint64_t counter inputPrimCount;
281 uint64_t counter primGeneratedCount;
287 uint64_t counter vertsInput;
293 uint64_t counter primCount;
299 uint32_t counter rastTileCount;
305 uint32_t counter trivialRejectCount;
306 uint32_t counter trivialAcceptCount;
307 uint32_t counter mustClipCount;
313 uint64_t counter backfacePrimCount;
314 uint64_t counter degeneratePrimCount;
320 uint32_t counter alphaTestCount;
321 uint32_t counter alphaBlendCount;
327 uint32_t counter numInstExecuted;
328 uint32_t counter numSampleExecuted;
329 uint32_t counter numSampleLExecuted;
330 uint32_t counter numSampleBExecuted;
331 uint32_t counter numSampleCExecuted;
332 uint32_t counter numSampleCLZExecuted;
333 uint32_t counter numSampleCDExecuted;
334 uint32_t counter numGather4Executed;
335 uint32_t counter numGather4CExecuted;
336 uint32_t counter numGather4CPOExecuted;
337 uint32_t counter numGather4CPOCExecuted;
338 uint32_t counter numLodExecuted;
344 uint32_t counter numInstExecuted;
345 uint32_t counter numSampleExecuted;
346 uint32_t counter numSampleLExecuted;
347 uint32_t counter numSampleBExecuted;
348 uint32_t counter numSampleCExecuted;
349 uint32_t counter numSampleCLZExecuted;
350 uint32_t counter numSampleCDExecuted;
351 uint32_t counter numGather4Executed;
352 uint32_t counter numGather4CExecuted;
353 uint32_t counter numGather4CPOExecuted;
354 uint32_t counter numGather4CPOCExecuted;
355 uint32_t counter numLodExecuted;
361 uint32_t counter numInstExecuted;
362 uint32_t counter numSampleExecuted;
363 uint32_t counter numSampleLExecuted;
364 uint32_t counter numSampleBExecuted;
365 uint32_t counter numSampleCExecuted;
366 uint32_t counter numSampleCLZExecuted;
367 uint32_t counter numSampleCDExecuted;
368 uint32_t counter numGather4Executed;
369 uint32_t counter numGather4CExecuted;
370 uint32_t counter numGather4CPOExecuted;
371 uint32_t counter numGather4CPOCExecuted;
372 uint32_t counter numLodExecuted;
378 uint32_t counter numInstExecuted;
379 uint32_t counter numSampleExecuted;
380 uint32_t counter numSampleLExecuted;
381 uint32_t counter numSampleBExecuted;
382 uint32_t counter numSampleCExecuted;
383 uint32_t counter numSampleCLZExecuted;
384 uint32_t counter numSampleCDExecuted;
385 uint32_t counter numGather4Executed;
386 uint32_t counter numGather4CExecuted;
387 uint32_t counter numGather4CPOExecuted;
388 uint32_t counter numGather4CPOCExecuted;
389 uint32_t counter numLodExecuted;
396 uint32_t counter numInstExecuted;
397 uint32_t counter numSampleExecuted;
398 uint32_t counter numSampleLExecuted;
399 uint32_t counter numSampleBExecuted;
400 uint32_t counter numSampleCExecuted;
401 uint32_t counter numSampleCLZExecuted;
402 uint32_t counter numSampleCDExecuted;
403 uint32_t counter numGather4Executed;
404 uint32_t counter numGather4CExecuted;
405 uint32_t counter numGather4CPOExecuted;
406 uint32_t counter numGather4CPOCExecuted;
407 uint32_t counter numLodExecuted;
413 uint32_t counter numInstExecuted;
414 uint32_t counter numSampleExecuted;
415 uint32_t counter numSampleLExecuted;
416 uint32_t counter numSampleBExecuted;
417 uint32_t counter numSampleCExecuted;
418 uint32_t counter numSampleCLZExecuted;
419 uint32_t counter numSampleCDExecuted;
420 uint32_t counter numGather4Executed;
421 uint32_t counter numGather4CExecuted;
422 uint32_t counter numGather4CPOExecuted;
423 uint32_t counter numGather4CPOCExecuted;
424 uint32_t counter numLodExecuted;
427 event SWTagFrameEvent
432 event SWTagRenderpassEvent
435 uint32_t swTagDrawOrDispatch;
437 uint32_t swTagDispatch;
438 uint32_t swTagRenderpassCount;
444 uint32_t swTagDrawOrDispatch;
446 uint32_t swTagDispatch;
449 event SWTagDispatchEvent
452 uint32_t swTagDrawOrDispatch;
454 uint32_t swTagDispatch;
457 event SWTagFlushEvent
460 uint32_t swTagDrawOrDispatch;
462 uint32_t swTagDispatch;
463 uint32_t swTagFlushCounter;
464 char swTagFlushReason[256];
465 uint32_t swTagFlushType;
468 event SWTagApiCallEvent
471 uint32_t swTagDrawOrDispatch;
473 uint32_t swTagDispatch;
474 char swTagApiCall[256];
477 event MemoryStatsEvent
481 uint32_t accessCountRead;
482 uint32_t accessCountWrite;
483 uint32_t totalSizeRead;
484 uint32_t totalSizeWrite;