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 EarlyDepthStencilInfoSingleSample
29 uint64_t depthPassMask;
30 uint64_t stencilPassMask;
31 uint64_t coverageMask;
34 event EarlyDepthStencilInfoSampleRate
36 uint64_t depthPassMask;
37 uint64_t stencilPassMask;
38 uint64_t coverageMask;
41 event EarlyDepthStencilInfoNullPS
43 uint64_t depthPassMask;
44 uint64_t stencilPassMask;
45 uint64_t coverageMask;
48 event LateDepthStencilInfoSingleSample
50 uint64_t depthPassMask;
51 uint64_t stencilPassMask;
52 uint64_t coverageMask;
55 event LateDepthStencilInfoSampleRate
57 uint64_t depthPassMask;
58 uint64_t stencilPassMask;
59 uint64_t coverageMask;
62 event LateDepthStencilInfoNullPS
64 uint64_t depthPassMask;
65 uint64_t stencilPassMask;
66 uint64_t coverageMask;
69 event EarlyDepthInfoPixelRate
71 uint64_t depthPassCount;
76 event LateDepthInfoPixelRate
78 uint64_t depthPassCount;
83 event BackendDrawEndEvent
88 event FrontendDrawEndEvent
100 uint64_t inputPrimCount;
101 uint64_t primGeneratedCount;
105 // validMask is primitives that still need to be clipped. They weren't rejected due to trivial reject or nan.
106 // clipMask is primitives that need to be clipped. So trivial accepts will be 0 while validMask for that is 1.
107 // Trivial reject is numInvocations - pop_cnt32(validMask)
108 // Trivial accept is validMask & ~clipMask
109 // Must clip count is pop_cnt32(clipMask)
112 uint32_t numInvocations;
117 event DrawInstancedEvent
122 uint32_t numVertices;
124 uint32_t numInstances;
125 uint32_t startInstance;
128 event DrawIndexedInstancedEvent
136 uint32_t numInstances;
137 uint32_t startInstance;
140 ///@brief API Stat: Split draw event for DrawInstanced. In certain cases, Rasty can split draws up into smaller draws.
141 event DrawInstancedSplitEvent
147 ///@brief API Stat: Split draw event for DrawIndexedInstanced.
148 event DrawIndexedInstancedSplitEvent