xa: don't leak fences
XA was never unref'ing last_fence in the various call paths to pipe->flush(). Add this to xa_context_flush() and update the other open-coded calls to pipe->flush() to use xa_context_flush() instead. This fixes a memory leak reported with xf86-video-freedreno. Reported-by:Nicolas Dechesne <nicolas.dechesne@linaro.org> Cc: "10.5 10.6" <mesa-stable@lists.freedesktop.org> Signed-off-by:
Rob Clark <robclark@freedesktop.org>
Showing
- src/gallium/state_trackers/xa/xa_context.c 5 additions, 1 deletionsrc/gallium/state_trackers/xa/xa_context.c
- src/gallium/state_trackers/xa/xa_tracker.c 1 addition, 1 deletionsrc/gallium/state_trackers/xa/xa_tracker.c
- src/gallium/state_trackers/xa/xa_yuv.c 1 addition, 1 deletionsrc/gallium/state_trackers/xa/xa_yuv.c
Loading
Please register or sign in to comment