Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
shader-db
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Eduardo Lima Mitev
shader-db
Commits
b2a45056
Commit
b2a45056
authored
Jul 03, 2016
by
Marek Olšák
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
si-report.py: show spilled SGPRs and VGPRs
Acked-by:
Nicolai Hähnle
<
nicolai.haehnle@amd.com
>
parent
ad66916b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
si-report.py
si-report.py
+6
-1
No files found.
si-report.py
View file @
b2a45056
...
...
@@ -58,6 +58,8 @@ class si_stats:
metrics
=
[
(
'sgprs'
,
'SGPRS'
,
''
),
(
'vgprs'
,
'VGPRS'
,
''
),
(
'spilled_sgprs'
,
'Spilled SGPRs'
,
''
),
(
'spilled_vgprs'
,
'Spilled VGPRs'
,
''
),
(
'code_size'
,
'Code Size'
,
'bytes'
),
(
'lds'
,
'LDS'
,
'blocks'
),
(
'scratch'
,
'Scratch'
,
'bytes per wave'
),
...
...
@@ -157,7 +159,8 @@ class si_stats:
class
si_parser
(
object
):
re_stats
=
re
.
compile
(
r
"^Shader Stats: SGPRS: ([0-9]+) VGPRS: ([0-9]+) Code Size: ([0-9]+) "
+
r
"LDS: ([0-9]+) Scratch: ([0-9]+) Max Waves: ([0-9]+)"
)
r
"LDS: ([0-9]+) Scratch: ([0-9]+) Max Waves: ([0-9]+) Spilled SGPRs: "
+
r
"([0-9]+) Spilled VGPRs: ([0-9]+)"
)
re_nop
=
re
.
compile
(
"^
\t
s_nop ([0-9]+)"
)
def
__init__
(
self
):
...
...
@@ -181,6 +184,8 @@ class si_parser(object):
self
.
_stats
=
si_stats
()
self
.
_stats
.
sgprs
=
int
(
match
.
group
(
1
))
self
.
_stats
.
vgprs
=
int
(
match
.
group
(
2
))
self
.
_stats
.
spilled_sgprs
=
int
(
match
.
group
(
7
))
self
.
_stats
.
spilled_vgprs
=
int
(
match
.
group
(
8
))
self
.
_stats
.
code_size
=
int
(
match
.
group
(
3
))
self
.
_stats
.
lds
=
int
(
match
.
group
(
4
))
self
.
_stats
.
scratch
=
int
(
match
.
group
(
5
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment