summaryrefslogtreecommitdiff
path: root/tools/show_egl2_log.sh
blob: 66063b3b97b8979fedf4d9cb963b921a0187b8de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
# Usage: show_egl2_log.sh ../native/egl2/cube.fdr <flags>
#
#  -l, --hide-load-state
#                        Hide "LOAD_STATE" entries, this can make command
#                        stream a bit easier to read
#  --show-state-map      Expand state map from context (verbose!)
#  --show-context-commands
#                        Expand context command buffer (verbose!)
#  --show-context-buffer
#                        Expand context CPU buffer (verbose!)
#  --list-address-states
#                       When dumping command buffer, provide list of states
#                        that contain GPU addresses
#  --dump-shaders       Dump binary shaders to disk
#
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if [ -z "$1" ]; then
    echo "Must provide at least the name of a .fdr file."
    echo "Usage: show_egl2_log.sh ../native/egl2/cube.fdr <flags>"
    echo
fi
python dump_cmdstream.py $* ${DIR}/data/gcs_hal_interface_v2.json