summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon/radeon_uvd.c
diff options
context:
space:
mode:
authorLeo Liu <[email protected]>2016-07-14 09:19:59 -0400
committerLeo Liu <[email protected]>2016-07-18 09:20:40 -0400
commit134d6e4e4f980d738361bfcae1daedb8cc58b5df (patch)
tree42111b499933a57bf610b9cef5e58a32fe6c51c0 /src/gallium/drivers/radeon/radeon_uvd.c
parent0f2516d88f6607b2816445c2dc18607cdaf1beff (diff)
vl/dri3: fix a memory leak from front buffer
Inspired by fix for mem leak of vdpau interop, resource_from_handle set texture reference count, that need to be decreased and released, recall there is a similar case for DRI3, that is with VA-API glx extension, there is temporary TFP(texture from pixmap), we target it through dma-buf. leak happens when without count down the reference. Checked and found with mpv vo=opengl case, there only one static TFP, the leak happens once, but for totem player using gstreamer VA-API glx, the dynamic TFP for each frame, so leak quite a bit. This fixes mem leak for mpv and totem. Signed-off-by: Leo Liu <[email protected]> Cc: "12.0" <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon/radeon_uvd.c')
0 files changed, 0 insertions, 0 deletions