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
7bd87852
Commit
7bd87852
authored
Nov 09, 2010
by
Xiang, Haihao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
i965_drv_video: Y-tiled surface for MFD on Sandybridge
Signed-off-by:
Xiang, Haihao
<
haihao.xiang@intel.com
>
parent
23b30e26
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
12 deletions
+29
-12
i965_drv_video/gen6_mfd.c
i965_drv_video/gen6_mfd.c
+29
-12
No files found.
i965_drv_video/gen6_mfd.c
View file @
7bd87852
...
...
@@ -110,13 +110,20 @@ gen6_mfd_avc_frame_store_index(VADriverContextP ctx, VAPictureParameterBufferH26
struct
object_surface
*
obj_surface
=
SURFACE
(
ref_pic
->
picture_id
);
if
(
obj_surface
->
bo
==
NULL
)
{
/* Some broken sources such as conformance case FM2_SVA_C
* will get here !!!. Allocating a BO for it to avoid SEGMENT FAULT
*/
obj_surface
->
bo
=
dri_bo_alloc
(
i965
->
intel
.
bufmgr
,
"vaapi surface"
,
obj_surface
->
size
,
0x1000
);
uint32_t
tiling_mode
=
I915_TILING_Y
;
unsigned
long
pitch
;
obj_surface
->
bo
=
drm_intel_bo_alloc_tiled
(
i965
->
intel
.
bufmgr
,
"vaapi surface"
,
obj_surface
->
width
,
obj_surface
->
height
+
obj_surface
->
height
/
2
,
1
,
&
tiling_mode
,
&
pitch
,
0
);
assert
(
obj_surface
->
bo
);
assert
(
tiling_mode
==
I915_TILING_Y
);
assert
(
pitch
==
obj_surface
->
width
);
}
for
(
frame_idx
=
0
;
frame_idx
<
ARRAY_ELEMS
(
gen6_mfd_context
->
reference_surface
);
frame_idx
++
)
{
...
...
@@ -278,7 +285,7 @@ gen6_mfd_surface_state(VADriverContextP ctx,
(
0
<<
22
)
|
/* surface object control state, FIXME??? */
((
obj_surface
->
width
-
1
)
<<
3
)
|
/* pitch */
(
0
<<
2
)
|
/* must be 0 for interleave U/V */
(
0
<<
1
)
|
/* tiled flag, FIXME: must be 1 ???
*/
(
1
<<
1
)
|
/* must be y-tiled
*/
(
I965_TILEWALK_YMAJOR
<<
0
));
/* tile walk, FIXME: must be 1 ??? */
OUT_BCS_BATCH
(
ctx
,
(
0
<<
16
)
|
/* must be 0 for interleave U/V */
...
...
@@ -1020,10 +1027,20 @@ gen6_mfd_avc_decode_init(VADriverContextP ctx, struct decode_state *decode_state
gen6_mfd_init_mfx_surface
(
ctx
,
pic_param
,
obj_surface
);
if
(
obj_surface
->
bo
==
NULL
)
{
obj_surface
->
bo
=
dri_bo_alloc
(
i965
->
intel
.
bufmgr
,
"vaapi surface"
,
obj_surface
->
size
,
0x1000
);
uint32_t
tiling_mode
=
I915_TILING_Y
;
unsigned
long
pitch
;
obj_surface
->
bo
=
drm_intel_bo_alloc_tiled
(
i965
->
intel
.
bufmgr
,
"vaapi surface"
,
obj_surface
->
width
,
obj_surface
->
height
+
obj_surface
->
height
/
2
,
1
,
&
tiling_mode
,
&
pitch
,
0
);
assert
(
obj_surface
->
bo
);
assert
(
tiling_mode
==
I915_TILING_Y
);
assert
(
pitch
==
obj_surface
->
width
);
}
dri_bo_unreference
(
gen6_mfd_context
->
post_deblocking_output
.
bo
);
...
...
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