1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
From 8b3afcaeebdd87962f2f3fef36973090621d116b Mon Sep 17 00:00:00 2001
From: Max Krummenacher <max.krummenacher@toradex.com>
Date: Sun, 29 Mar 2020 15:38:31 +0000
Subject: [PATCH 5/5] scripts: Tie a few more Python 2 to 3 conversion loose
ends.
Upstream-Status: pending
Note: code exists in NXP's fork only.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
---
wrappers/glxtrace.py | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/wrappers/glxtrace.py b/wrappers/glxtrace.py
index b05028e2..2472560d 100644
--- a/wrappers/glxtrace.py
+++ b/wrappers/glxtrace.py
@@ -67,9 +67,9 @@ class GlxTracer(GlTracer):
print(' gltrace::releaseContext((uintptr_t)ctx);')
if function.name == 'glXGetCurrentDisplay':
- print ' if(_glXGetCurrentDisplay == &glXGetCurrentDisplay ){'
- print ' _glXGetCurrentDisplay = (PFN_GLXGETCURRENTDISPLAY)_getPublicProcAddress("glXGetCurrentDisplay");'
- print ' }'
+ print (' if(_glXGetCurrentDisplay == &glXGetCurrentDisplay ){')
+ print (' _glXGetCurrentDisplay = (PFN_GLXGETCURRENTDISPLAY)_getPublicProcAddress("glXGetCurrentDisplay");')
+ print (' }')
GlTracer.traceFunctionImplBody(self, function)
@@ -184,7 +184,7 @@ if __name__ == '__main__':
tracer = GlxTracer()
tracer.traceApi(api)
- print r'''
+ print (r'''
/*
@@ -247,8 +247,8 @@ void * dlopen(const char *filename, int flag)
-'''
- print r'''
+''')
+ print (r'''
/*
* let the GPU driver know that we are in apitrace
*/
@@ -257,4 +257,4 @@ int APIENTRY ApiTraceEnabled(void) {
return 1;
}
-'''
+''')
--
2.20.1
|