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
0c70b6b6
Commit
0c70b6b6
authored
Apr 19, 2010
by
Xiang, Haihao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
i965_drv_video: move AVC-ILDB data buffer to struct i965_h264_context
parent
7d5877d5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
14 deletions
+14
-14
i965_drv_video/i965_avc_bsd.c
i965_drv_video/i965_avc_bsd.c
+1
-10
i965_drv_video/i965_avc_bsd.h
i965_drv_video/i965_avc_bsd.h
+0
-4
i965_drv_video/i965_media_h264.c
i965_drv_video/i965_media_h264.c
+9
-0
i965_drv_video/i965_media_h264.h
i965_drv_video/i965_media_h264.h
+4
-0
No files found.
i965_drv_video/i965_avc_bsd.c
View file @
0c70b6b6
...
...
@@ -433,7 +433,7 @@ i965_avc_bsd_buf_base_state(VADriverContextP ctx,
OUT_BCS_RELOC
(
ctx
,
i965_h264_context
->
avc_it_data
.
bo
,
I915_GEM_DOMAIN_INSTRUCTION
,
I915_GEM_DOMAIN_INSTRUCTION
,
(
i965_h264_context
->
avc_it_data
.
write_offset
<<
6
));
OUT_BCS_RELOC
(
ctx
,
i965_
avc_bsd_context
->
ildb_data
.
bo
,
OUT_BCS_RELOC
(
ctx
,
i965_
h264_context
->
avc_
ildb_data
.
bo
,
I915_GEM_DOMAIN_INSTRUCTION
,
I915_GEM_DOMAIN_INSTRUCTION
,
0
);
...
...
@@ -1002,14 +1002,6 @@ i965_avc_bsd_decode_init(VADriverContextP ctx)
64
);
assert
(
bo
);
i965_avc_bsd_context
->
mpr_row_store
.
bo
=
bo
;
dri_bo_unreference
(
i965_avc_bsd_context
->
ildb_data
.
bo
);
bo
=
dri_bo_alloc
(
i965
->
intel
.
bufmgr
,
"ildb data"
,
0x100000
,
/* at least 1044480 bytes */
64
);
assert
(
bo
);
i965_avc_bsd_context
->
ildb_data
.
bo
=
bo
;
}
Bool
...
...
@@ -1017,7 +1009,6 @@ i965_avc_bsd_ternimate(struct i965_avc_bsd_context *i965_avc_bsd_context)
{
dri_bo_unreference
(
i965_avc_bsd_context
->
bsd_raw_store
.
bo
);
dri_bo_unreference
(
i965_avc_bsd_context
->
mpr_row_store
.
bo
);
dri_bo_unreference
(
i965_avc_bsd_context
->
ildb_data
.
bo
);
return
True
;
}
i965_drv_video/i965_avc_bsd.h
View file @
0c70b6b6
...
...
@@ -54,10 +54,6 @@ struct i965_avc_bsd_context
dri_bo
*
bo
;
long
write_offset
;
}
avc_it_data
;
struct
{
dri_bo
*
bo
;
}
ildb_data
;
};
void
i965_avc_bsd_pipeline
(
VADriverContextP
,
struct
decode_state
*
);
...
...
i965_drv_video/i965_media_h264.c
View file @
0c70b6b6
...
...
@@ -792,6 +792,14 @@ i965_media_h264_decode_init(VADriverContextP ctx)
dri_bo_reference
(
media_state
->
indirect_object
.
bo
);
media_state
->
indirect_object
.
offset
=
i965_h264_context
->
avc_it_data
.
write_offset
;
dri_bo_unreference
(
i965_h264_context
->
avc_ildb_data
.
bo
);
bo
=
dri_bo_alloc
(
i965
->
intel
.
bufmgr
,
"AVC-ILDB Data Buffer"
,
0x100000
,
/* at least 1044480 bytes */
64
);
assert
(
bo
);
i965_h264_context
->
avc_ildb_data
.
bo
=
bo
;
/* bsd pipeline */
i965_avc_bsd_decode_init
(
ctx
);
...
...
@@ -892,6 +900,7 @@ i965_media_h264_ternimate(VADriverContextP ctx)
i965_avc_bsd_ternimate
(
&
i965_h264_context
->
i965_avc_bsd_context
);
dri_bo_unreference
(
i965_h264_context
->
avc_it_command_mb_info
.
bo
);
dri_bo_unreference
(
i965_h264_context
->
avc_it_data
.
bo
);
dri_bo_unreference
(
i965_h264_context
->
avc_ildb_data
.
bo
);
free
(
i965_h264_context
);
media_state
->
private_context
=
NULL
;
}
...
...
i965_drv_video/i965_media_h264.h
View file @
0c70b6b6
...
...
@@ -25,6 +25,10 @@ struct i965_h264_context
long
write_offset
;
}
avc_it_data
;
struct
{
dri_bo
*
bo
;
}
avc_ildb_data
;
struct
{
unsigned
int
width_in_mbs
;
unsigned
int
height_in_mbs
;
...
...
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