summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThierry Reding <thierry.reding@gmail.com>2016-06-28 23:14:04 +0200
committerThierry Reding <treding@nvidia.com>2016-07-04 11:37:31 +0200
commitfbfcf31a13dcd564161bd7ae79b87e8c30908f2d (patch)
tree0da3c3030740c8cff27f9ff9a0047170ba269f21
parent6c95e8d382b62dcfd164506644e464db17c7e984 (diff)
WIP
-rw-r--r--src/gallium/auxiliary/vl/vl_winsys_dri.c2
-rw-r--r--src/gallium/state_trackers/vdpau/device.c4
-rw-r--r--src/gallium/targets/vdpau/Makefile.am2
3 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/vl/vl_winsys_dri.c b/src/gallium/auxiliary/vl/vl_winsys_dri.c
index 9ecc216b9c53..9c552d091f00 100644
--- a/src/gallium/auxiliary/vl/vl_winsys_dri.c
+++ b/src/gallium/auxiliary/vl/vl_winsys_dri.c
@@ -386,6 +386,8 @@ vl_dri2_screen_create(Display *display, int screen)
if (!device_name)
goto free_connect;
memcpy(device_name, xcb_dri2_connect_device_name(connect), device_name_length);
+ extern int printf(const char *fmt, ...);
+ printf("opening device %s\n", device_name);
fd = loader_open_device(device_name);
free(device_name);
diff --git a/src/gallium/state_trackers/vdpau/device.c b/src/gallium/state_trackers/vdpau/device.c
index 81b75827f34e..c2945838537a 100644
--- a/src/gallium/state_trackers/vdpau/device.c
+++ b/src/gallium/state_trackers/vdpau/device.c
@@ -47,6 +47,8 @@ vdp_imp_device_create_x11(Display *display, int screen, VdpDevice *device,
vlVdpDevice *dev = NULL;
VdpStatus ret;
+ VDPAU_MSG(VDPAU_TRACE, "> %s(display=%p, ...)\n", __func__, display);
+
if (!(display && device && get_proc_address))
return VDP_STATUS_INVALID_POINTER;
@@ -69,6 +71,7 @@ vdp_imp_device_create_x11(Display *display, int screen, VdpDevice *device,
if (!dev->vscreen)
dev->vscreen = vl_dri2_screen_create(display, screen);
if (!dev->vscreen) {
+ VDPAU_MSG(VDPAU_TRACE, "failed to create screen\n");
ret = VDP_STATUS_RESOURCES;
goto no_vscreen;
}
@@ -146,6 +149,7 @@ no_vscreen:
no_dev:
vlDestroyHTAB();
no_htab:
+ VDPAU_MSG(VDPAU_TRACE, "< %s() = %d\n", __func__, ret);
return ret;
}
diff --git a/src/gallium/targets/vdpau/Makefile.am b/src/gallium/targets/vdpau/Makefile.am
index d388f8b5014c..aba27e573d35 100644
--- a/src/gallium/targets/vdpau/Makefile.am
+++ b/src/gallium/targets/vdpau/Makefile.am
@@ -55,6 +55,8 @@ include $(top_srcdir)/src/gallium/drivers/r300/Automake.inc
include $(top_srcdir)/src/gallium/drivers/r600/Automake.inc
include $(top_srcdir)/src/gallium/drivers/radeonsi/Automake.inc
+include $(top_srcdir)/src/gallium/drivers/tegra/Automake.inc
+
if HAVE_GALLIUM_STATIC_TARGETS
libvdpau_gallium_la_SOURCES += target.c