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
2d7a2ce0
Commit
2d7a2ce0
authored
May 28, 2010
by
Xiang, Haihao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
i965_drv_video: [H.264] devide the command buffer into smaller sections for HWscoreboard thread.
parent
b2aade85
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
10 deletions
+32
-10
i965_drv_video/i965_avc_hw_scoreboard.c
i965_drv_video/i965_avc_hw_scoreboard.c
+32
-10
No files found.
i965_drv_video/i965_avc_hw_scoreboard.c
View file @
2d7a2ce0
...
@@ -269,15 +269,37 @@ i965_avc_hw_scoreboard_constant_buffer(VADriverContextP ctx, struct i965_avc_hw_
...
@@ -269,15 +269,37 @@ i965_avc_hw_scoreboard_constant_buffer(VADriverContextP ctx, struct i965_avc_hw_
static
void
static
void
i965_avc_hw_scoreboard_objects
(
VADriverContextP
ctx
,
struct
i965_avc_hw_scoreboard_context
*
avc_hw_scoreboard_context
)
i965_avc_hw_scoreboard_objects
(
VADriverContextP
ctx
,
struct
i965_avc_hw_scoreboard_context
*
avc_hw_scoreboard_context
)
{
{
BEGIN_BATCH
(
ctx
,
6
);
int
number_mb_cmds
=
512
;
OUT_BATCH
(
ctx
,
CMD_MEDIA_OBJECT
|
4
);
int
starting_mb_number
=
avc_hw_scoreboard_context
->
inline_data
.
starting_mb_number
;
OUT_BATCH
(
ctx
,
0
);
/* interface descriptor offset: 0 */
int
i
;
OUT_BATCH
(
ctx
,
0
);
/* no indirect data */
OUT_BATCH
(
ctx
,
0
);
for
(
i
=
0
;
i
<
avc_hw_scoreboard_context
->
inline_data
.
num_mb_cmds
/
512
;
i
++
)
{
OUT_BATCH
(
ctx
,
((
avc_hw_scoreboard_context
->
inline_data
.
num_mb_cmds
<<
16
)
|
BEGIN_BATCH
(
ctx
,
6
);
(
avc_hw_scoreboard_context
->
inline_data
.
starting_mb_number
<<
0
)));
OUT_BATCH
(
ctx
,
CMD_MEDIA_OBJECT
|
4
);
OUT_BATCH
(
ctx
,
avc_hw_scoreboard_context
->
inline_data
.
pic_width_in_mbs
);
OUT_BATCH
(
ctx
,
0
);
/* interface descriptor offset: 0 */
ADVANCE_BATCH
(
ctx
);
OUT_BATCH
(
ctx
,
0
);
/* no indirect data */
OUT_BATCH
(
ctx
,
0
);
OUT_BATCH
(
ctx
,
((
number_mb_cmds
<<
16
)
|
(
starting_mb_number
<<
0
)));
OUT_BATCH
(
ctx
,
avc_hw_scoreboard_context
->
inline_data
.
pic_width_in_mbs
);
ADVANCE_BATCH
(
ctx
);
starting_mb_number
+=
512
;
}
number_mb_cmds
=
avc_hw_scoreboard_context
->
inline_data
.
num_mb_cmds
%
512
;
if
(
number_mb_cmds
)
{
BEGIN_BATCH
(
ctx
,
6
);
OUT_BATCH
(
ctx
,
CMD_MEDIA_OBJECT
|
4
);
OUT_BATCH
(
ctx
,
0
);
/* interface descriptor offset: 0 */
OUT_BATCH
(
ctx
,
0
);
/* no indirect data */
OUT_BATCH
(
ctx
,
0
);
OUT_BATCH
(
ctx
,
((
number_mb_cmds
<<
16
)
|
(
starting_mb_number
<<
0
)));
OUT_BATCH
(
ctx
,
avc_hw_scoreboard_context
->
inline_data
.
pic_width_in_mbs
);
ADVANCE_BATCH
(
ctx
);
}
}
}
static
void
static
void
...
@@ -376,7 +398,7 @@ i965_avc_hw_scoreboard_decode_init(VADriverContextP ctx)
...
@@ -376,7 +398,7 @@ i965_avc_hw_scoreboard_decode_init(VADriverContextP ctx)
assert
(
bo
);
assert
(
bo
);
avc_hw_scoreboard_context
->
vfe_state
.
bo
=
bo
;
avc_hw_scoreboard_context
->
vfe_state
.
bo
=
bo
;
avc_hw_scoreboard_context
->
urb
.
num_vfe_entries
=
1
;
avc_hw_scoreboard_context
->
urb
.
num_vfe_entries
=
32
;
avc_hw_scoreboard_context
->
urb
.
size_vfe_entry
=
2
;
avc_hw_scoreboard_context
->
urb
.
size_vfe_entry
=
2
;
avc_hw_scoreboard_context
->
urb
.
num_cs_entries
=
1
;
avc_hw_scoreboard_context
->
urb
.
num_cs_entries
=
1
;
avc_hw_scoreboard_context
->
urb
.
size_cs_entry
=
1
;
avc_hw_scoreboard_context
->
urb
.
size_cs_entry
=
1
;
...
...
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