[Mesa-dev] [PATCH 1/3] Fix missing initializer warning in sid_tables.h by adding appropriate default fields in sid_tables.py
Benedikt Schemmer
ben at besd.de
Sun Jun 4 07:45:20 UTC 2017
Fix missing initializer warning in sid_tables.h by adding appropriate default fields in sid_tables.py
---
src/amd/common/sid_tables.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/amd/common/sid_tables.py b/src/amd/common/sid_tables.py
index fd88d3c9d5..691d766b08 100644
--- a/src/amd/common/sid_tables.py
+++ b/src/amd/common/sid_tables.py
@@ -270,7 +270,7 @@ struct si_packet3 {
strings.add(field.name), field.s_name,
len(values_offsets), strings_offsets.add(values_offsets))
else:
- print '\t{%s, %s(~0u)},' % (strings.add(field.name), field.s_name)
+ print '\t{%s, %s(~0u), 0, 0},' % (strings.add(field.name), field.s_name)
fields_idx += 1
print '};'
@@ -282,7 +282,7 @@ struct si_packet3 {
print '\t{%s, %s, %s, %s},' % (strings.add(reg.name), reg.r_name,
len(reg.fields), reg.fields_idx if reg.own_fields else reg.fields_owner.fields_idx)
else:
- print '\t{%s, %s},' % (strings.add(reg.name), reg.r_name)
+ print '\t{%s, %s, 0, 0},' % (strings.add(reg.name), reg.r_name)
print '};'
print
--
2.11.0
More information about the mesa-dev
mailing list