• Rob Clark's avatar
    freedreno/msm: fix issue where same bo is on multiple rings · 9e34ee4f
    Rob Clark authored
    It should be a less common case, but it is possible for a single bo to
    be on multiple rings, for example when sharing a buffer across multiple
    pipe_context's created from same pipe_screen.
    So rather than completely fall over in this case, fallback to slow-path
    of looping over all bo's in the ring's bo-table (but retain the fast-
    path of constant-lookup for the first ring the buffer is on).
    Signed-off-by: default avatarRob Clark <robclark@freedesktop.org>
msm_ringbuffer.c 10.4 KB