Module: Mesa Branch: main Commit: 6e6e16b31783b5c747cc70b5b5316c5aeda46ae4 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6e6e16b31783b5c747cc70b5b5316c5aeda46ae4
Author: Vinson Lee <[email protected]> Date: Sun Dec 19 18:25:33 2021 -0800 isaspec: Sort field names to generate deterministic output. Signed-off-by: Vinson Lee <[email protected]> Acked-by: Rob Clark <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14259> --- src/compiler/isaspec/decode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/isaspec/decode.py b/src/compiler/isaspec/decode.py index 309b8035a55..9acbd17ab18 100755 --- a/src/compiler/isaspec/decode.py +++ b/src/compiler/isaspec/decode.py @@ -76,7 +76,7 @@ static const struct isa_enum ${enum.get_c_name()} = { static uint64_t ${expr.get_c_name()}(struct decode_scope *scope) { -% for fieldname in expr.fieldnames: +% for fieldname in sorted(expr.fieldnames): int64_t ${fieldname} = isa_decode_field(scope, "${fieldname}"); % endfor return ${expr.expr};
