Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libva
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
libva
Commits
2822d025
Commit
2822d025
authored
Aug 28, 2009
by
Austin Yuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove context from vaSyncSurface
Signed-off-by:
Austin Yuan
<
shengquan.yuan@intel.com
>
parent
e2a24f01
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
2 additions
and
19 deletions
+2
-19
dummy_drv_video/dummy_drv_video.c
dummy_drv_video/dummy_drv_video.c
+0
-8
i965_drv_video/i965_drv_video.c
i965_drv_video/i965_drv_video.c
+0
-6
src/va.c
src/va.c
+1
-2
src/va.h
src/va.h
+0
-1
src/va_backend.h
src/va_backend.h
+0
-1
test/test_12.c
test/test_12.c
+1
-1
No files found.
dummy_drv_video/dummy_drv_video.c
View file @
2822d025
...
...
@@ -1005,24 +1005,16 @@ VAStatus dummy_EndPicture(
VAStatus
dummy_SyncSurface
(
VADriverContextP
ctx
,
VAContextID
context
,
VASurfaceID
render_target
)
{
INIT_DRIVER_DATA
VAStatus
vaStatus
=
VA_STATUS_SUCCESS
;
object_context_p
obj_context
;
object_surface_p
obj_surface
;
obj_context
=
CONTEXT
(
context
);
ASSERT
(
obj_context
);
obj_surface
=
SURFACE
(
render_target
);
ASSERT
(
obj_surface
);
/* Assume that this shouldn't be called before vaEndPicture() */
ASSERT
(
obj_context
->
current_render_target
!=
obj_surface
->
base
.
id
);
return
vaStatus
;
}
...
...
i965_drv_video/i965_drv_video.c
View file @
2822d025
...
...
@@ -995,19 +995,13 @@ i965_EndPicture(VADriverContextP ctx, VAContextID context)
VAStatus
i965_SyncSurface
(
VADriverContextP
ctx
,
VAContextID
context
,
VASurfaceID
render_target
)
{
struct
i965_driver_data
*
i965
=
i965_driver_data
(
ctx
);
struct
object_context
*
obj_context
=
CONTEXT
(
context
);
struct
object_surface
*
obj_surface
=
SURFACE
(
render_target
);
assert
(
obj_context
);
assert
(
obj_surface
);
/* Assume that this shouldn't be called before vaEndPicture() */
assert
(
obj_context
->
decode_state
.
current_render_target
!=
render_target
);
return
VA_STATUS_SUCCESS
;
}
...
...
src/va.c
View file @
2822d025
...
...
@@ -709,7 +709,6 @@ VAStatus vaEndPicture (
VAStatus
vaSyncSurface
(
VADisplay
dpy
,
VAContextID
context
,
VASurfaceID
render_target
)
{
...
...
@@ -718,7 +717,7 @@ VAStatus vaSyncSurface (
ctx
=
CTX
(
dpy
);
TRACE
(
vaSyncSurface
);
return
ctx
->
vtable
.
vaSyncSurface
(
ctx
,
context
,
render_target
);
return
ctx
->
vtable
.
vaSyncSurface
(
ctx
,
render_target
);
}
VAStatus
vaQuerySurfaceStatus
(
...
...
src/va.h
View file @
2822d025
...
...
@@ -1244,7 +1244,6 @@ Synchronization
*/
VAStatus
vaSyncSurface
(
VADisplay
dpy
,
VAContextID
context
,
VASurfaceID
render_target
);
...
...
src/va_backend.h
View file @
2822d025
...
...
@@ -175,7 +175,6 @@ struct VADriverVTable
VAStatus
(
*
vaSyncSurface
)
(
VADriverContextP
ctx
,
VAContextID
context
,
VASurfaceID
render_target
);
...
...
test/test_12.c
View file @
2822d025
...
...
@@ -222,7 +222,7 @@ void test()
va_status
=
vaEndPicture
(
va_dpy
,
vaContext
);
ASSERT
(
VA_STATUS_SUCCESS
==
va_status
);
va_status
=
vaSyncSurface
(
va_dpy
,
va
Context
,
va
Surface
);
va_status
=
vaSyncSurface
(
va_dpy
,
vaSurface
);
ASSERT
(
VA_STATUS_SUCCESS
==
va_status
);
win
=
XCreateSimpleWindow
(
dpy
,
RootWindow
(
dpy
,
0
),
0
,
0
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment