picture: Move request submit from EndPicture to SyncSurface

Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
This commit is contained in:
Maxime Ripard
2018-04-20 11:02:04 +02:00
parent 115b0d39b1
commit 22c6a01a93
2 changed files with 2 additions and 1 deletions
-1
View File
@@ -254,7 +254,6 @@ VAStatus sunxi_cedrus_EndPicture(VADriverContextP ctx, VAContextID context)
return VA_STATUS_ERROR_UNKNOWN; return VA_STATUS_ERROR_UNKNOWN;
} }
assert(ioctl(request_fd, MEDIA_REQUEST_IOC_SUBMIT, NULL)==0);
/* For now, assume that we are done with rendering right away */ /* For now, assume that we are done with rendering right away */
obj_context->current_render_target = -1; obj_context->current_render_target = -1;
+2
View File
@@ -181,6 +181,8 @@ VAStatus sunxi_cedrus_SyncSurface(VADriverContextP ctx,
if(request_fd < 0) if(request_fd < 0)
return VA_STATUS_ERROR_UNKNOWN; return VA_STATUS_ERROR_UNKNOWN;
assert(ioctl(request_fd, MEDIA_REQUEST_IOC_SUBMIT, NULL)==0);
FD_ZERO(&read_fds); FD_ZERO(&read_fds);
FD_SET(request_fd, &read_fds); FD_SET(request_fd, &read_fds);