commit | 0edf7cc1700f070498926dacdbfd16f2279e32a0 | [log] [tgz] |
---|---|---|
author | D Scott Phillips <d.scott.phillips@intel.com> | Fri Apr 17 10:28:06 2020 -0700 |
committer | Craig Stout <cstout@google.com> | Mon Jun 22 16:42:07 2020 +0000 |
tree | 0fb7850f4e1ceae2ce3b9c38a3011081a41b481a | |
parent | 2d30f43b2d1f0c16ac0d0061b663b07b218b5bdf [diff] |
util/sparse_array: don't stomp head's counter on pop operations By temporarily storing the new_head by a uint32_t, we wipe out the counter section of the head pointer. Fixes: e4f01eca ("util: Add a free list structure for use with util_sparse_array") Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4612> (cherry picked from commit dc3a17997b479f91f36b2421e9c41c11a025de47) Cherry-pick'd from 5ef9dccff3fda298af89218009e5a3553c296200 Change-Id: Ic2a94160b426dcc60ca8f4bb56f4b7ff9501f532 Reviewed-on: https://fuchsia-review.googlesource.com/c/third_party/mesa/+/399926 Reviewed-by: Craig Stout <cstout@google.com>