• Rob Clark's avatar
    freedreno: don't leak stateobj rb refs · a43940eb
    Rob Clark authored
    One stateobj can be emitted multiple times in a single cmdstream, but
    only the first time is a cmd entry added to the parent.  Since it will
    be only unref'd once after flush, we should only ref it the first time
    it is emitted (ie. the time it is added to cmd table).
    Signed-off-by: default avatarRob Clark <robclark@freedesktop.org>
msm_ringbuffer.c 18.3 KB