Mesa (master): st/va: fix build fails with pipe loader
Leo Liu
leoliu at kemper.freedesktop.org
Sun Nov 8 23:28:52 UTC 2015
Module: Mesa
Branch: master
Commit: d115e47099b6c3ceb27d0c462eb559df6d1f9fd7
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d115e47099b6c3ceb27d0c462eb559df6d1f9fd7
Author: Leo Liu <leo.liu at amd.com>
Date: Thu Nov 5 11:22:22 2015 -0500
st/va: fix build fails with pipe loader
There is no dev in drv, and dev should be from vl_screen here
Signed-off-by: Leo Liu <leo.liu at amd.com>
Reviewed-by: Christian König <christian.koenig at amd.com>
---
src/gallium/state_trackers/va/context.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/gallium/state_trackers/va/context.c b/src/gallium/state_trackers/va/context.c
index ec9e048..25fa905 100644
--- a/src/gallium/state_trackers/va/context.c
+++ b/src/gallium/state_trackers/va/context.c
@@ -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)
More information about the mesa-commit
mailing list