summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers
diff options
context:
space:
mode:
authorLeo Liu <[email protected]>2015-11-05 11:22:22 -0500
committerLeo Liu <[email protected]>2015-11-08 18:15:57 -0500
commitd115e47099b6c3ceb27d0c462eb559df6d1f9fd7 (patch)
tree597b3f00d9d83d9426a8d8b7fcd57c90e577ecd6 /src/gallium/state_trackers
parentffb60e77882d2da9f42a76d602114cdb26dd25bc (diff)
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 <[email protected]> Reviewed-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r--src/gallium/state_trackers/va/context.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/va/context.c b/src/gallium/state_trackers/va/context.c
index ec9e0488d85..25fa9058edb 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)