From: Tobin Ehlis Date: Thu, 18 Dec 2014 17:32:57 +0000 (-0700) Subject: layers: Updated README to include ParamChecker X-Git-Tag: submit/tizen/20181227.054638~6244 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eaf389a1bedf829a983765b308b1c1b8cf95acbb;p=platform%2Fupstream%2FVulkan-Tools.git layers: Updated README to include ParamChecker Conflicts: layers/README.md --- diff --git a/layers/README.md b/layers/README.md index 17309396..2515fe64 100644 --- a/layers/README.md +++ b/layers/README.md @@ -38,7 +38,7 @@ layer/Multi.cpp (name=multi1:multi2) simple example showing multiple layers per (build dir)/layer/api\_dump\_no\_addr.c - print out API calls along with parameter values but replace any variable addresses with the static string "addr". ### Print Object Stats -(build di\r>/layer/object_track.c - Print object CREATE/USE/DESTROY stats. Individually track objects by category. XGL\_OBJECT\_TYPE enum defined in object_track.h. If a Dbg callback function is registered, this layer will use callback function(s) for reporting, otherwise uses stdout. Provides custom interface to query number of live objects of given type "XGL\_UINT64 objTrackGetObjectCount(XGL\_OBJECT\_TYPE type)" and a secondary call to return an array of those objects "XGL\_RESULT objTrackGetObjects(XGL\_OBJECT\_TYPE type, XGL\_UINT64 objCount, OBJTRACK\_NODE* pObjNodeArray)". +(build dir>/layer/object_track.c - Print object CREATE/USE/DESTROY stats. Individually track objects by category. XGL\_OBJECT\_TYPE enum defined in object_track.h. If a Dbg callback function is registered, this layer will use callback function(s) for reporting, otherwise uses stdout. Provides custom interface to query number of live objects of given type "XGL\_UINT64 objTrackGetObjectCount(XGL\_OBJECT\_TYPE type)" and a secondary call to return an array of those objects "XGL\_RESULT objTrackGetObjects(XGL\_OBJECT\_TYPE type, XGL\_UINT64 objCount, OBJTRACK\_NODE* pObjNodeArray)". ### Report Draw State layer/draw\_state.c - Report the Descriptor Set, Pipeline State, and dynamic state at each Draw call. If a Dbg callback function is registered, this layer will use callback function(s) for reporting, otherwise uses stdout. @@ -46,6 +46,9 @@ layer/draw\_state.c - Report the Descriptor Set, Pipeline State, and dynamic sta ### Track GPU Memory layer/mem\_tracker.c - Track GPU Memory and any binding it has to objects and/or Cmd Buffers. Report issues with freeing memory, memory dependencies on Cmd Buffers, and any memory leaks at DestroyDevice time. If a Dbg callback function is registered, this layer will use callback function(s) for reporting, otherwise uses stdout. +### Check parameters +/layer/param_checker.c (name=ParamChecker) - Check the input parameters to API calls for validity. Currently this only checks ENUM params directly passed to API calls and ENUMs embedded in struct params. If a Dbg callback function is registered, this layer will use callback function(s) for reporting, otherwise uses stdout. + ## Using Layers 1. Build XGL loader and i965 icd driver using normal steps (cmake and make)