summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/vdpau/preemption.c
diff options
context:
space:
mode:
authorEmeric Grange <[email protected]>2011-09-12 23:39:30 +0200
committerChristian König <[email protected]>2011-09-14 15:49:16 +0200
commitfa2a8316cebeb75626ffa3e38dbc1500e82054f6 (patch)
tree18d6db91740b543df72d6586bfb1397aeea4d7ce /src/gallium/state_trackers/vdpau/preemption.c
parentc24bc6f8684abee8c9a1b263334cd7a8506657b1 (diff)
st/vdpau: Add documentation from the VDPAU API and update some traces
Signed-off-by: Emeric Grange <[email protected]> Reviewed-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/vdpau/preemption.c')
-rw-r--r--src/gallium/state_trackers/vdpau/preemption.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/vdpau/preemption.c b/src/gallium/state_trackers/vdpau/preemption.c
index 75933c11329..67a3ce663b7 100644
--- a/src/gallium/state_trackers/vdpau/preemption.c
+++ b/src/gallium/state_trackers/vdpau/preemption.c
@@ -27,11 +27,18 @@
#include <vdpau/vdpau.h>
+/**
+ * A callback to notify the client application that a device's display has
+ * been preempted.
+ */
void vlVdpPreemptionCallback(VdpDevice device, void *context)
{
/* TODO: Implement preemption */
}
+/**
+ * Configure the display preemption callback.
+ */
VdpStatus vlVdpPreemptionCallbackRegister(VdpDevice device,
VdpPreemptionCallback callback,
void *context)