Demos (master): gltrace: Ignore padding parameters.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Sat Nov 13 07:59:24 PST 2010


Module: Demos
Branch: master
Commit: 6f17c4658e3c4e32c5f10074baa95c3ce1085bfa
URL:    http://cgit.freedesktop.org/mesa/demos/commit/?id=6f17c4658e3c4e32c5f10074baa95c3ce1085bfa

Author: José Fonseca <jfonseca at vmware.com>
Date:   Sat Nov 13 15:44:46 2010 +0000

gltrace: Ignore padding parameters.

---

 src/tools/trace/gltrace.py |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/src/tools/trace/gltrace.py b/src/tools/trace/gltrace.py
index 973881a..7d27642 100644
--- a/src/tools/trace/gltrace.py
+++ b/src/tools/trace/gltrace.py
@@ -33,7 +33,8 @@ def create_argument_string(parameters):
 
 	list = []
 	for p in parameters:
-		list.append( p.name )
+		if not p.is_padding:
+			list.append( p.name )
 	#if len(list) == 0: list = ["void"]
 
 	return string.join(list, ", ")
@@ -45,10 +46,11 @@ def create_logfunc_string(func, name):
 	list.append('"gl' + name + '("')
 	sep = None
 	for p in func.parameters:
-		if (sep):
-			list.append(sep)
-		list.append( p.name )
-		sep = '", "'
+		if not p.is_padding:
+			if (sep):
+				list.append(sep)
+			list.append( p.name )
+			sep = '", "'
 	list.append('");"')
 	#if len(list) == 0: list = ["void"]
 



More information about the mesa-commit mailing list