genxml: Remove unused parameter.
authorRafael Antognolli <rafael.antognolli@intel.com>
Fri, 14 Apr 2017 15:36:45 +0000 (08:36 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 24 Apr 2017 22:14:05 +0000 (15:14 -0700)
'start' parameter from Group.emit_pack_function() is useless.

Signed-off-by: Rafael Antognolli <rafael.antognolli@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/genxml/gen_pack_header.py

index 5228f30bd05f2cb2cd7549763de1eef388077562..81c64cbbc752095157b7f7177059cd1b23a4c6ba 100644 (file)
@@ -347,7 +347,7 @@ class Group(object):
                 dwords[index + 1] = dwords[index]
                 index = index + 1
 
-    def emit_pack_function(self, start):
+    def emit_pack_function(self):
         dwords = {}
         self.collect_dwords(dwords, 0, "")
 
@@ -579,7 +579,7 @@ class Parser(object):
         # Cast dst to make header C++ friendly
         print("   uint32_t * restrict dw = (uint32_t * restrict) dst;")
 
-        group.emit_pack_function(0)
+        group.emit_pack_function()
 
         print("}\n")