[VDPAU] [PATCH] vdpau_x11.h: update stale comment about how libvdpau finds drivers

Aaron Plattner aplattner at nvidia.com
Tue Oct 28 13:31:24 PDT 2014


When this comment was written, it wasn't clear how the library was going to
figure out which back-end driver to load.  Since then, the wrapper has been
updated to make DRI2 that "VDPAU-specific X extension."

Signed-off-by: Aaron Plattner <aplattner at nvidia.com>
---
 include/vdpau/vdpau_x11.h | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/include/vdpau/vdpau_x11.h b/include/vdpau/vdpau_x11.h
index 9cce6c87dba4..edbc27554ecb 100644
--- a/include/vdpau/vdpau_x11.h
+++ b/include/vdpau/vdpau_x11.h
@@ -85,13 +85,13 @@ extern "C" {
  *   environment variable.
  *
  * The VDPAU wrapper library implements just one function; \ref
- * vdp_device_create_x11. The wrapper will implement this function
- * by dynamically loading the appropriate back-end driver file
- * mentioned above. Long-term, the wrapper will use a
- * VDPAU-specific X  extension to determine which back-end driver
- * to load. Currently, the wrapper library hard-codes the driver
- * name as "nvidia", although this can be overridden using the
- * environment variable VDPAU_DRIVER.
+ * vdp_device_create_x11. The wrapper implements this function by
+ * dynamically loading the appropriate back-end driver file mentioned
+ * above. When available, the wrapper uses the DRI2 extension's
+ * DRI2Connect request with the driver type 'DRI2DriverVDPAU' to
+ * determine which back-end driver to load. If that fails, the wrapper
+ * library hard-codes the driver name as "nvidia", although this can
+ * be overridden using the environment variable VDPAU_DRIVER.
  *
  * The back-end driver is expected to implement a function named
  * \b vdp_imp_device_create_x11. The wrapper will call this function to
-- 
2.1.2



More information about the VDPAU mailing list