commit | 966b55c6daec2a318fe0776405a3f8174ce43c64 | [log] [tgz] |
---|---|---|
author | Rob Clark <robdclark@chromium.org> | Mon Nov 09 14:11:09 2020 -0800 |
committer | Dylan Baker <dylan.c.baker@intel.com> | Fri Nov 13 10:05:34 2020 -0800 |
tree | aa205cdb1478ffb1791ad8cc425ef1234e1d3f77 | |
parent | 60ffcfe6a98db7a1b3e1e3f6a001234e9a0ab071 [diff] |
freedreno: Protect gmem_cache ralloc allocations Since the ralloc context for cache_key allocation is shared between all the contexts hanging off a screen, we need to allocate the key under the screen->lock. Fixes: 91f9bb99c5e ("freedreno: add gmem state cache") Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7342> (cherry picked from commit cb034ae44f4a1f3ed036ba71fc42746efb4cd775)