summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <baker.dylan.c@gmail.com>2015-05-18 11:45:09 -0700
committerDylan Baker <baker.dylan.c@gmail.com>2015-08-11 14:16:03 -0700
commite7ec76bee55333382226ff92823d5d9dd8908ed2 (patch)
treeb82a7a6fcd24b49e76674bbd71dab8dfa47e2631
parent5f4e0a896a305dc45486cdb41dfe15fd4592c41a (diff)
glapi: glX_proto_send.py: small refactors to hash_pixel_function
-rw-r--r--src/mapi/glapi/gen/glX_proto_send.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mapi/glapi/gen/glX_proto_send.py b/src/mapi/glapi/gen/glX_proto_send.py
index b60fe8935b..6474388706 100644
--- a/src/mapi/glapi/gen/glX_proto_send.py
+++ b/src/mapi/glapi/gen/glX_proto_send.py
@@ -66,22 +66,22 @@ def hash_pixel_function(func):
dim, _, _, _, _ = param.get_dimensions()
d = (dim + 1) & ~1
- hash_pre = "%uD%uD_" % (d - 1, d)
+ hash_pre = "{0}D{1}D_".format(d - 1, d)
if param.img_null_flag:
hash_suf = "_NF"
- h += "%u" % (param.size())
+ h += str(param.size())
if func.pad_after(param):
h += "4"
- n = func.name.replace("%uD" % (dim), "")
- n = "__glx_%s_%uD%uD" % (n, d - 1, d)
+ n = func.name.replace("{0}D".format(dim), "")
+ n = "__glx_{0}_{1}D{2}D".format(n, d - 1, d)
h = hash_pre + h + hash_suf
- return [h, n]
+ return h, n
class glx_pixel_function_stub(glX_XML.glx_function):