From fbfcf31a13dcd564161bd7ae79b87e8c30908f2d Mon Sep 17 00:00:00 2001 From: Thierry Reding Date: Tue, 28 Jun 2016 23:14:04 +0200 Subject: WIP --- src/gallium/auxiliary/vl/vl_winsys_dri.c | 2 ++ src/gallium/state_trackers/vdpau/device.c | 4 ++++ src/gallium/targets/vdpau/Makefile.am | 2 ++ 3 files changed, 8 insertions(+) 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 -- cgit v1.2.3