[Piglit] [PATCH 01/12] piglit-displatch-gen.h.mako: sort comments

Dylan Baker baker.dylan.c at gmail.com
Tue Jan 13 17:48:11 PST 2015


From: Dylan Baker <dylanx.c.baker at intel.com>

Currently the comments are not sorted, and therefor not deterministic,
which makes it very difficult to diff the output when trying to make
changes and ensure not changes. This makes the output deterministic.

Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
---
 tests/util/piglit-dispatch-gen.h.mako | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/util/piglit-dispatch-gen.h.mako b/tests/util/piglit-dispatch-gen.h.mako
index feb4be8..2c45643 100644
--- a/tests/util/piglit-dispatch-gen.h.mako
+++ b/tests/util/piglit-dispatch-gen.h.mako
@@ -45,7 +45,7 @@ typedef ${f.c_return_type} (APIENTRY *PFN${f.name.upper()}PROC)(${f.c_named_para
 <% f0 = alias_set.primary_command %>\
 % for command in alias_set:
 /* ${command.name}
-% for requirement in command.requirements:
+% for requirement in sorted(command.requirements):
 .................. (${requirement.provider.name})
 % endfor
 ................................................. */
-- 
2.2.1



More information about the Piglit mailing list