st/va: fix build fails with pipe loader
authorLeo Liu <leo.liu@amd.com>
Thu, 5 Nov 2015 16:22:22 +0000 (11:22 -0500)
committerLeo Liu <leo.liu@amd.com>
Sun, 8 Nov 2015 23:15:57 +0000 (18:15 -0500)
There is no dev in drv, and dev should be from vl_screen here

Signed-off-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
src/gallium/state_trackers/va/context.c

index ec9e048..25fa905 100644 (file)
@@ -151,8 +151,9 @@ VA_DRIVER_INIT_FUNC(VADriverContextP ctx)
 #if GALLIUM_STATIC_TARGETS
       drv->vscreen->pscreen = dd_create_screen(drm_fd);
 #else
-      if (pipe_loader_drm_probe_fd(&drv->dev, drm_fd))
-         drv->vscreen->pscreen = pipe_loader_create_screen(drv->dev, PIPE_SEARCH_DIR);
+      if (pipe_loader_drm_probe_fd(&drv->vscreen->dev, drm_fd))
+         drv->vscreen->pscreen =
+           pipe_loader_create_screen(drv->vscreen->dev, PIPE_SEARCH_DIR);
 #endif
 
       if (!drv->vscreen->pscreen)