summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/vdpau/htab.c
diff options
context:
space:
mode:
authorChristian König <[email protected]>2011-04-25 11:39:41 +0200
committerChristian König <[email protected]>2011-04-25 11:39:41 +0200
commit5aa26412432dbdb3b1677d6d2f74bba010f443ae (patch)
tree5e5da42fff8a67102c1305a6ee2ce86121996297 /src/gallium/state_trackers/vdpau/htab.c
parent7cde6722b01732e5a897771b56bf8d13719153ec (diff)
vdpau: implement and cleanup PresentationQueueTarget destruction
Diffstat (limited to 'src/gallium/state_trackers/vdpau/htab.c')
-rw-r--r--src/gallium/state_trackers/vdpau/htab.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/vdpau/htab.c b/src/gallium/state_trackers/vdpau/htab.c
index 0c958055374..20f5a171f19 100644
--- a/src/gallium/state_trackers/vdpau/htab.c
+++ b/src/gallium/state_trackers/vdpau/htab.c
@@ -92,3 +92,13 @@ void* vlGetDataHTAB(vlHandle handle)
return (void*)handle;
#endif
}
+
+void vlRemoveDataHTAB(vlHandle handle)
+{
+#ifdef VL_HANDLES
+ pipe_mutex_lock(htab_lock);
+ if (htab)
+ handle_table_remove(htab, handle);
+ pipe_mutex_unlock(htab_lock);
+#endif
+}