tint: Fix stability of intrinsic_table.inl
Use a StableSort() to ensure the output is the same between different versions of golang. Change-Id: Ic81688d189ce62816ba0aefddcef607b76415a5d Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/110361 Reviewed-by: Dan Sinclair <dsinclair@chromium.org> Commit-Queue: Ben Clayton <bclayton@google.com> Kokoro: Ben Clayton <bclayton@google.com>
This commit is contained in:
parent
2d90dedea4
commit
6be02b607f
File diff suppressed because it is too large
Load Diff
|
@ -83,7 +83,7 @@ func (t lut) Compact() {
|
|||
// This helps 'seed' the compacted form with the largest items first.
|
||||
// This can improve the compaction as small sequences can pack into larger,
|
||||
// placed items.
|
||||
sort.Slice(t.sequences, func(i, j int) bool {
|
||||
sort.SliceStable(t.sequences, func(i, j int) bool {
|
||||
return t.sequences[i].count > t.sequences[j].count
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue