summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/swr/rasterizer/archrast
diff options
context:
space:
mode:
authorAlok Hota <[email protected]>2018-09-17 14:50:47 -0500
committerAlok Hota <[email protected]>2019-02-25 13:05:36 -0600
commit16e10b8c304481e423e76311f70de5de9e7424b1 (patch)
treeda7cc1687b5695457ca419d99aa6838f6e3ae08f /src/gallium/drivers/swr/rasterizer/archrast
parentb45a15a39f7630d569fcf1296dac1415eb758249 (diff)
swr/rast: Add general SWTag statistics
Update Archrast parser to use stats, used with an internal tool Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr/rasterizer/archrast')
-rw-r--r--src/gallium/drivers/swr/rasterizer/archrast/events.proto314
1 files changed, 165 insertions, 149 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/archrast/events.proto b/src/gallium/drivers/swr/rasterizer/archrast/events.proto
index aedc37b7440..1057a9437be 100644
--- a/src/gallium/drivers/swr/rasterizer/archrast/events.proto
+++ b/src/gallium/drivers/swr/rasterizer/archrast/events.proto
@@ -96,355 +96,371 @@ event SwrStoreTilesEvent
event FrontendStatsEvent
{
uint32_t drawId;
- uint64_t IaVertices;
- uint64_t IaPrimitives;
- uint64_t VsInvocations;
- uint64_t HsInvocations;
- uint64_t DsInvocations;
- uint64_t GsInvocations;
- uint64_t GsPrimitives;
- uint64_t CInvocations;
- uint64_t CPrimitives;
- uint64_t SoPrimStorageNeeded0;
- uint64_t SoPrimStorageNeeded1;
- uint64_t SoPrimStorageNeeded2;
- uint64_t SoPrimStorageNeeded3;
- uint64_t SoNumPrimsWritten0;
- uint64_t SoNumPrimsWritten1;
- uint64_t SoNumPrimsWritten2;
- uint64_t SoNumPrimsWritten3;
+ uint64_t counter IaVertices;
+ uint64_t counter IaPrimitives;
+ uint64_t counter VsInvocations;
+ uint64_t counter HsInvocations;
+ uint64_t counter DsInvocations;
+ uint64_t counter GsInvocations;
+ uint64_t counter GsPrimitives;
+ uint64_t counter CInvocations;
+ uint64_t counter CPrimitives;
+ uint64_t counter SoPrimStorageNeeded0;
+ uint64_t counter SoPrimStorageNeeded1;
+ uint64_t counter SoPrimStorageNeeded2;
+ uint64_t counter SoPrimStorageNeeded3;
+ uint64_t counter SoNumPrimsWritten0;
+ uint64_t counter SoNumPrimsWritten1;
+ uint64_t counter SoNumPrimsWritten2;
+ uint64_t counter SoNumPrimsWritten3;
};
event BackendStatsEvent
{
uint32_t drawId;
- uint64_t DepthPassCount;
- uint64_t PsInvocations;
- uint64_t CsInvocations;
+ uint64_t counter DepthPassCount;
+ uint64_t counter PsInvocations;
+ uint64_t counter CsInvocations;
};
event EarlyZSingleSample
{
uint32_t drawId;
- uint64_t passCount;
- uint64_t failCount;
+ uint64_t counter passCount;
+ uint64_t counter failCount;
};
event LateZSingleSample
{
uint32_t drawId;
- uint64_t passCount;
- uint64_t failCount;
+ uint64_t counter passCount;
+ uint64_t counter failCount;
};
event EarlyStencilSingleSample
{
uint32_t drawId;
- uint64_t passCount;
- uint64_t failCount;
+ uint64_t counter passCount;
+ uint64_t counter failCount;
};
event LateStencilSingleSample
{
uint32_t drawId;
- uint64_t passCount;
- uint64_t failCount;
+ uint64_t counter passCount;
+ uint64_t counter failCount;
};
event EarlyZSampleRate
{
uint32_t drawId;
- uint64_t passCount;
- uint64_t failCount;
+ uint64_t counter passCount;
+ uint64_t counter failCount;
};
event LateZSampleRate
{
uint32_t drawId;
- uint64_t passCount;
- uint64_t failCount;
+ uint64_t counter passCount;
+ uint64_t counter failCount;
};
event EarlyStencilSampleRate
{
uint32_t drawId;
- uint64_t passCount;
- uint64_t failCount;
+ uint64_t counter passCount;
+ uint64_t counter failCount;
};
event LateStencilSampleRate
{
uint32_t drawId;
- uint64_t passCount;
- uint64_t failCount;
+ uint64_t counter passCount;
+ uint64_t counter failCount;
};
// Total Early-Z counts, SingleSample and SampleRate
event EarlyZ
{
uint32_t drawId;
- uint64_t passCount;
- uint64_t failCount;
+ uint64_t counter passCount;
+ uint64_t counter failCount;
};
// Total LateZ counts, SingleSample and SampleRate
event LateZ
{
uint32_t drawId;
- uint64_t passCount;
- uint64_t failCount;
+ uint64_t counter passCount;
+ uint64_t counter failCount;
};
// Total EarlyStencil counts, SingleSample and SampleRate
event EarlyStencil
{
uint32_t drawId;
- uint64_t passCount;
- uint64_t failCount;
+ uint64_t counter passCount;
+ uint64_t counter failCount;
};
// Total LateStencil counts, SingleSample and SampleRate
event LateStencil
{
uint32_t drawId;
- uint64_t passCount;
- uint64_t failCount;
+ uint64_t counter passCount;
+ uint64_t counter failCount;
};
event EarlyZNullPS
{
uint32_t drawId;
- uint64_t passCount;
- uint64_t failCount;
+ uint64_t counter passCount;
+ uint64_t counter failCount;
};
event EarlyStencilNullPS
{
uint32_t drawId;
- uint64_t passCount;
- uint64_t failCount;
+ uint64_t counter passCount;
+ uint64_t counter failCount;
};
event EarlyZPixelRate
{
uint32_t drawId;
- uint64_t passCount;
- uint64_t failCount;
+ uint64_t counter passCount;
+ uint64_t counter failCount;
};
event LateZPixelRate
{
uint32_t drawId;
- uint64_t passCount;
- uint64_t failCount;
+ uint64_t counter passCount;
+ uint64_t counter failCount;
};
event EarlyOmZ
{
uint32_t drawId;
- uint64_t passCount;
- uint64_t failCount;
+ uint64_t counter passCount;
+ uint64_t counter failCount;
};
event EarlyOmStencil
{
uint32_t drawId;
- uint64_t passCount;
- uint64_t failCount;
+ uint64_t counter passCount;
+ uint64_t counter failCount;
};
event LateOmZ
{
uint32_t drawId;
- uint64_t passCount;
- uint64_t failCount;
+ uint64_t counter passCount;
+ uint64_t counter failCount;
};
event LateOmStencil
{
uint32_t drawId;
- uint64_t passCount;
- uint64_t failCount;
+ uint64_t counter passCount;
+ uint64_t counter failCount;
};
event GSInputPrims
{
uint32_t drawId;
- uint64_t inputPrimCount;
+ uint64_t counter inputPrimCount;
};
event GSPrimsGen
{
uint32_t drawId;
- uint64_t primGeneratedCount;
+ uint64_t counter primGeneratedCount;
};
event GSVertsInput
{
uint32_t drawId;
- uint64_t vertsInput;
+ uint64_t counter vertsInput;
};
event TessPrims
{
uint32_t drawId;
- uint64_t primCount;
+ uint64_t counter primCount;
};
event RasterTiles
{
uint32_t drawId;
- uint32_t rastTileCount;
+ uint32_t counter rastTileCount;
};
event ClipperEvent
{
uint32_t drawId;
- uint32_t trivialRejectCount;
- uint32_t trivialAcceptCount;
- uint32_t mustClipCount;
+ uint32_t counter trivialRejectCount;
+ uint32_t counter trivialAcceptCount;
+ uint32_t counter mustClipCount;
};
event CullEvent
{
uint32_t drawId;
- uint64_t backfacePrimCount;
- uint64_t degeneratePrimCount;
+ uint64_t counter backfacePrimCount;
+ uint64_t counter degeneratePrimCount;
};
event AlphaEvent
{
uint32_t drawId;
- uint32_t alphaTestCount;
- uint32_t alphaBlendCount;
+ uint32_t counter alphaTestCount;
+ uint32_t counter alphaBlendCount;
};
event VSInfo
{
uint32_t drawId;
- uint32_t numInstExecuted;
- uint32_t numSampleExecuted;
- uint32_t numSampleLExecuted;
- uint32_t numSampleBExecuted;
- uint32_t numSampleCExecuted;
- uint32_t numSampleCLZExecuted;
- uint32_t numSampleCDExecuted;
- uint32_t numGather4Executed;
- uint32_t numGather4CExecuted;
- uint32_t numGather4CPOExecuted;
- uint32_t numGather4CPOCExecuted;
- uint32_t numLodExecuted;
+ uint32_t counter numInstExecuted;
+ uint32_t counter numSampleExecuted;
+ uint32_t counter numSampleLExecuted;
+ uint32_t counter numSampleBExecuted;
+ uint32_t counter numSampleCExecuted;
+ uint32_t counter numSampleCLZExecuted;
+ uint32_t counter numSampleCDExecuted;
+ uint32_t counter numGather4Executed;
+ uint32_t counter numGather4CExecuted;
+ uint32_t counter numGather4CPOExecuted;
+ uint32_t counter numGather4CPOCExecuted;
+ uint32_t counter numLodExecuted;
};
event HSInfo
{
uint32_t drawId;
- uint32_t numInstExecuted;
- uint32_t numSampleExecuted;
- uint32_t numSampleLExecuted;
- uint32_t numSampleBExecuted;
- uint32_t numSampleCExecuted;
- uint32_t numSampleCLZExecuted;
- uint32_t numSampleCDExecuted;
- uint32_t numGather4Executed;
- uint32_t numGather4CExecuted;
- uint32_t numGather4CPOExecuted;
- uint32_t numGather4CPOCExecuted;
- uint32_t numLodExecuted;
+ uint32_t counter numInstExecuted;
+ uint32_t counter numSampleExecuted;
+ uint32_t counter numSampleLExecuted;
+ uint32_t counter numSampleBExecuted;
+ uint32_t counter numSampleCExecuted;
+ uint32_t counter numSampleCLZExecuted;
+ uint32_t counter numSampleCDExecuted;
+ uint32_t counter numGather4Executed;
+ uint32_t counter numGather4CExecuted;
+ uint32_t counter numGather4CPOExecuted;
+ uint32_t counter numGather4CPOCExecuted;
+ uint32_t counter numLodExecuted;
};
event DSInfo
{
uint32_t drawId;
- uint32_t numInstExecuted;
- uint32_t numSampleExecuted;
- uint32_t numSampleLExecuted;
- uint32_t numSampleBExecuted;
- uint32_t numSampleCExecuted;
- uint32_t numSampleCLZExecuted;
- uint32_t numSampleCDExecuted;
- uint32_t numGather4Executed;
- uint32_t numGather4CExecuted;
- uint32_t numGather4CPOExecuted;
- uint32_t numGather4CPOCExecuted;
- uint32_t numLodExecuted;
+ uint32_t counter numInstExecuted;
+ uint32_t counter numSampleExecuted;
+ uint32_t counter numSampleLExecuted;
+ uint32_t counter numSampleBExecuted;
+ uint32_t counter numSampleCExecuted;
+ uint32_t counter numSampleCLZExecuted;
+ uint32_t counter numSampleCDExecuted;
+ uint32_t counter numGather4Executed;
+ uint32_t counter numGather4CExecuted;
+ uint32_t counter numGather4CPOExecuted;
+ uint32_t counter numGather4CPOCExecuted;
+ uint32_t counter numLodExecuted;
};
event GSInfo
{
uint32_t drawId;
- uint32_t numInstExecuted;
- uint32_t numSampleExecuted;
- uint32_t numSampleLExecuted;
- uint32_t numSampleBExecuted;
- uint32_t numSampleCExecuted;
- uint32_t numSampleCLZExecuted;
- uint32_t numSampleCDExecuted;
- uint32_t numGather4Executed;
- uint32_t numGather4CExecuted;
- uint32_t numGather4CPOExecuted;
- uint32_t numGather4CPOCExecuted;
- uint32_t numLodExecuted;
+ uint32_t counter numInstExecuted;
+ uint32_t counter numSampleExecuted;
+ uint32_t counter numSampleLExecuted;
+ uint32_t counter numSampleBExecuted;
+ uint32_t counter numSampleCExecuted;
+ uint32_t counter numSampleCLZExecuted;
+ uint32_t counter numSampleCDExecuted;
+ uint32_t counter numGather4Executed;
+ uint32_t counter numGather4CExecuted;
+ uint32_t counter numGather4CPOExecuted;
+ uint32_t counter numGather4CPOCExecuted;
+ uint32_t counter numLodExecuted;
};
event PSInfo
{
uint32_t drawId;
- uint32_t numInstExecuted;
- uint32_t numSampleExecuted;
- uint32_t numSampleLExecuted;
- uint32_t numSampleBExecuted;
- uint32_t numSampleCExecuted;
- uint32_t numSampleCLZExecuted;
- uint32_t numSampleCDExecuted;
- uint32_t numGather4Executed;
- uint32_t numGather4CExecuted;
- uint32_t numGather4CPOExecuted;
- uint32_t numGather4CPOCExecuted;
- uint32_t numLodExecuted;
+ uint32_t counter numInstExecuted;
+ uint32_t counter numSampleExecuted;
+ uint32_t counter numSampleLExecuted;
+ uint32_t counter numSampleBExecuted;
+ uint32_t counter numSampleCExecuted;
+ uint32_t counter numSampleCLZExecuted;
+ uint32_t counter numSampleCDExecuted;
+ uint32_t counter numGather4Executed;
+ uint32_t counter numGather4CExecuted;
+ uint32_t counter numGather4CPOExecuted;
+ uint32_t counter numGather4CPOCExecuted;
+ uint32_t counter numLodExecuted;
};
event CSInfo
{
uint32_t drawId;
- uint32_t numInstExecuted;
- uint32_t numSampleExecuted;
- uint32_t numSampleLExecuted;
- uint32_t numSampleBExecuted;
- uint32_t numSampleCExecuted;
- uint32_t numSampleCLZExecuted;
- uint32_t numSampleCDExecuted;
- uint32_t numGather4Executed;
- uint32_t numGather4CExecuted;
- uint32_t numGather4CPOExecuted;
- uint32_t numGather4CPOCExecuted;
- uint32_t numLodExecuted;
+ uint32_t counter numInstExecuted;
+ uint32_t counter numSampleExecuted;
+ uint32_t counter numSampleLExecuted;
+ uint32_t counter numSampleBExecuted;
+ uint32_t counter numSampleCExecuted;
+ uint32_t counter numSampleCLZExecuted;
+ uint32_t counter numSampleCDExecuted;
+ uint32_t counter numGather4Executed;
+ uint32_t counter numGather4CExecuted;
+ uint32_t counter numGather4CPOExecuted;
+ uint32_t counter numGather4CPOCExecuted;
+ uint32_t counter numLodExecuted;
};
event SWTagFrameEvent
{
+ uint64_t swTagFrame;
};
event SWTagRenderpassEvent
{
+ uint64_t swTagFrame;
+ uint32_t swTagDrawOrDispatch;
+ uint32_t swTagDraw;
+ uint32_t swTagDispatch;
+ uint32_t swTagRenderpassCount;
};
event SWTagDrawEvent
{
- uint32_t drawId;
+ uint64_t swTagFrame;
+ uint32_t swTagDrawOrDispatch;
+ uint32_t swTagDraw;
+ uint32_t swTagDispatch;
};
event SWTagDispatchEvent
{
- uint32_t drawId;
+ uint64_t swTagFrame;
+ uint32_t swTagDrawOrDispatch;
+ uint32_t swTagDraw;
+ uint32_t swTagDispatch;
};
event SWTagFlushEvent
{
- uint32_t drawId;
- char flushReason[256];
- uint32_t flushType;
+ uint64_t swTagFrame;
+ uint32_t swTagDrawOrDispatch;
+ uint32_t swTagDraw;
+ uint32_t swTagDispatch;
+ uint32_t swTagFlushCounter;
+ char swTagFlushReason[256];
+ uint32_t swTagFlushType;
}; \ No newline at end of file