summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/va/picture.c
diff options
context:
space:
mode:
authorLeo Liu <[email protected]>2017-09-15 22:23:03 -0400
committerLeo Liu <[email protected]>2017-09-25 09:42:14 -0400
commit1d1299f8a41edbf6373222eda5708af5a5390d3c (patch)
tree82a458ae78c29a5eaa6cacc8ec1325ba3926e2ce /src/gallium/state_trackers/va/picture.c
parent96f89f440b9ad5cc2765dfa12265ca756aee83ea (diff)
st/va: make internal func vlVaHandleSurfaceAllocate() call simpler
Acked-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/va/picture.c')
-rw-r--r--src/gallium/state_trackers/va/picture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/va/picture.c b/src/gallium/state_trackers/va/picture.c
index 81bd196ce00..5e794652a69 100644
--- a/src/gallium/state_trackers/va/picture.c
+++ b/src/gallium/state_trackers/va/picture.c
@@ -662,7 +662,7 @@ vlVaEndPicture(VADriverContextP ctx, VAContextID context_id)
if (realloc) {
struct pipe_video_buffer *old_buf = surf->buffer;
- if (vlVaHandleSurfaceAllocate(ctx, surf, &surf->templat) != VA_STATUS_SUCCESS) {
+ if (vlVaHandleSurfaceAllocate(drv, surf, &surf->templat) != VA_STATUS_SUCCESS) {
mtx_unlock(&drv->mutex);
return VA_STATUS_ERROR_ALLOCATION_FAILED;
}