From 187cc07d0561311114fc4b3e1fc9951ff311735b Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Thu, 7 Feb 2019 00:13:44 -0500 Subject: gallium: create multimedia contexts as compute-only if graphics is unsupported Reviewed-by: Alex Deucher Reviewed-by: Pierre-Eric Pelloux-Prayer --- src/gallium/state_trackers/vdpau/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/state_trackers/vdpau') diff --git a/src/gallium/state_trackers/vdpau/device.c b/src/gallium/state_trackers/vdpau/device.c index c3f156f0bb4..c5a3eeb6b30 100644 --- a/src/gallium/state_trackers/vdpau/device.c +++ b/src/gallium/state_trackers/vdpau/device.c @@ -72,7 +72,7 @@ vdp_imp_device_create_x11(Display *display, int screen, VdpDevice *device, } pscreen = dev->vscreen->pscreen; - dev->context = pscreen->context_create(pscreen, NULL, 0); + dev->context = pipe_create_multimedia_context(pscreen); if (!dev->context) { ret = VDP_STATUS_RESOURCES; goto no_context; -- cgit v1.2.3