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
6da7b5d6
Commit
6da7b5d6
authored
Jun 02, 2010
by
Xiang, Haihao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
i965_drv_video: don't execute batch buffer after decoding a picture
parent
911a9132
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
15 deletions
+17
-15
i965_drv_video/i965_avc_ildb.c
i965_drv_video/i965_avc_ildb.c
+0
-3
i965_drv_video/i965_media.c
i965_drv_video/i965_media.c
+0
-1
i965_drv_video/i965_media_h264.c
i965_drv_video/i965_media_h264.c
+16
-10
i965_drv_video/intel_driver.h
i965_drv_video/intel_driver.h
+1
-1
No files found.
i965_drv_video/i965_avc_ildb.c
View file @
6da7b5d6
...
...
@@ -567,9 +567,6 @@ i965_avc_ildb(VADriverContextP ctx, struct decode_state *decode_state)
struct
i965_h264_context
*
i965_h264_context
=
(
struct
i965_h264_context
*
)
media_state
->
private_context
;
if
(
i965_h264_context
->
enable_avc_ildb
)
{
intel_batchbuffer_end_atomic
(
ctx
);
intel_batchbuffer_flush
(
ctx
);
intel_batchbuffer_start_atomic
(
ctx
,
0x1000
);
i965_avc_ildb_states_setup
(
ctx
,
decode_state
);
i965_avc_ildb_pipeline_setup
(
ctx
);
}
...
...
i965_drv_video/i965_media.c
View file @
6da7b5d6
...
...
@@ -277,7 +277,6 @@ i965_media_decode_picture(VADriverContextP ctx,
assert
(
media_state
->
media_states_setup
);
media_state
->
media_states_setup
(
ctx
,
decode_state
);
i965_media_pipeline_setup
(
ctx
,
decode_state
);
intel_batchbuffer_flush
(
ctx
);
}
Bool
...
...
i965_drv_video/i965_media_h264.c
View file @
6da7b5d6
...
...
@@ -703,7 +703,6 @@ i965_media_h264_states_setup(VADriverContextP ctx, struct decode_state *decode_s
struct
i965_media_state
*
media_state
=
&
i965
->
media_state
;
struct
i965_h264_context
*
i965_h264_context
;
VAPictureParameterBufferH264
*
pic_param
;
unsigned
int
*
object_command
;
assert
(
media_state
->
private_context
);
i965_h264_context
=
(
struct
i965_h264_context
*
)
media_state
->
private_context
;
...
...
@@ -721,14 +720,6 @@ i965_media_h264_states_setup(VADriverContextP ctx, struct decode_state *decode_s
i965_avc_bsd_pipeline
(
ctx
,
decode_state
);
dri_bo_map
(
i965_h264_context
->
avc_it_command_mb_info
.
bo
,
True
);
assert
(
i965_h264_context
->
avc_it_command_mb_info
.
bo
->
virtual
);
object_command
=
i965_h264_context
->
avc_it_command_mb_info
.
bo
->
virtual
;
memset
(
object_command
,
0
,
i965_h264_context
->
avc_it_command_mb_info
.
mbs
*
i965_h264_context
->
use_avc_hw_scoreboard
*
MB_CMD_IN_BYTES
);
object_command
+=
i965_h264_context
->
avc_it_command_mb_info
.
mbs
*
(
1
+
i965_h264_context
->
use_avc_hw_scoreboard
)
*
MB_CMD_IN_DWS
;
*
object_command
=
MI_BATCH_BUFFER_END
;
dri_bo_unmap
(
i965_h264_context
->
avc_it_command_mb_info
.
bo
);
i965_avc_hw_scoreboard
(
ctx
,
decode_state
);
i965_media_h264_surfaces_setup
(
ctx
,
decode_state
);
...
...
@@ -745,10 +736,19 @@ i965_media_h264_objects(VADriverContextP ctx, struct decode_state *decode_state)
struct
i965_driver_data
*
i965
=
i965_driver_data
(
ctx
);
struct
i965_media_state
*
media_state
=
&
i965
->
media_state
;
struct
i965_h264_context
*
i965_h264_context
;
unsigned
int
*
object_command
;
assert
(
media_state
->
private_context
);
i965_h264_context
=
(
struct
i965_h264_context
*
)
media_state
->
private_context
;
dri_bo_map
(
i965_h264_context
->
avc_it_command_mb_info
.
bo
,
True
);
assert
(
i965_h264_context
->
avc_it_command_mb_info
.
bo
->
virtual
);
object_command
=
i965_h264_context
->
avc_it_command_mb_info
.
bo
->
virtual
;
memset
(
object_command
,
0
,
i965_h264_context
->
avc_it_command_mb_info
.
mbs
*
i965_h264_context
->
use_avc_hw_scoreboard
*
MB_CMD_IN_BYTES
);
object_command
+=
i965_h264_context
->
avc_it_command_mb_info
.
mbs
*
(
1
+
i965_h264_context
->
use_avc_hw_scoreboard
)
*
MB_CMD_IN_DWS
;
*
object_command
=
MI_BATCH_BUFFER_END
;
dri_bo_unmap
(
i965_h264_context
->
avc_it_command_mb_info
.
bo
);
BEGIN_BATCH
(
ctx
,
2
);
OUT_BATCH
(
ctx
,
MI_BATCH_BUFFER_START
|
(
2
<<
6
));
OUT_RELOC
(
ctx
,
i965_h264_context
->
avc_it_command_mb_info
.
bo
,
...
...
@@ -756,6 +756,12 @@ i965_media_h264_objects(VADriverContextP ctx, struct decode_state *decode_state)
0
);
ADVANCE_BATCH
(
ctx
);
/* Have to execute the batch buffer here becuase MI_BATCH_BUFFER_END
* will cause control to pass back to ring buffer
*/
intel_batchbuffer_end_atomic
(
ctx
);
intel_batchbuffer_flush
(
ctx
);
intel_batchbuffer_start_atomic
(
ctx
,
0x1000
);
i965_avc_ildb
(
ctx
,
decode_state
);
}
...
...
i965_drv_video/intel_driver.h
View file @
6da7b5d6
...
...
@@ -17,7 +17,7 @@
#define INLINE
#endif
#define BATCH_SIZE 0x10000
0
#define BATCH_SIZE 0x10000
#define BATCH_RESERVED 0x10
#define CMD_MI (0x0 << 29)
...
...
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