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
13e78b6c
Commit
13e78b6c
authored
Nov 09, 2010
by
Xiang, Haihao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
i965_drv_video/render: support tiled source surface
Signed-off-by:
Xiang, Haihao
<
haihao.xiang@intel.com
>
parent
458aa1b9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
19 deletions
+25
-19
i965_drv_video/i965_render.c
i965_drv_video/i965_render.c
+25
-19
No files found.
i965_drv_video/i965_render.c
View file @
13e78b6c
...
...
@@ -535,6 +535,25 @@ i965_render_cc_unit(VADriverContextP ctx)
dri_bo_unmap
(
render_state
->
cc
.
state
);
}
static
void
i965_render_set_surface_tiling
(
struct
i965_surface_state
*
ss
,
unsigned
int
tiling
)
{
switch
(
tiling
)
{
case
I915_TILING_NONE
:
ss
->
ss3
.
tiled_surface
=
0
;
ss
->
ss3
.
tile_walk
=
0
;
break
;
case
I915_TILING_X
:
ss
->
ss3
.
tiled_surface
=
1
;
ss
->
ss3
.
tile_walk
=
I965_TILEWALK_XMAJOR
;
break
;
case
I915_TILING_Y
:
ss
->
ss3
.
tiled_surface
=
1
;
ss
->
ss3
.
tile_walk
=
I965_TILEWALK_YMAJOR
;
break
;
}
}
static
void
i965_render_src_surface_state
(
VADriverContextP
ctx
,
int
index
,
...
...
@@ -547,8 +566,11 @@ i965_render_src_surface_state(VADriverContextP ctx,
struct
i965_render_state
*
render_state
=
&
i965
->
render_state
;
struct
i965_surface_state
*
ss
;
dri_bo
*
ss_bo
=
render_state
->
wm
.
surface_state_binding_table_bo
;
unsigned
int
tiling
;
unsigned
int
swizzle
;
assert
(
index
<
MAX_RENDER_SURFACES
);
dri_bo_map
(
ss_bo
,
1
);
assert
(
ss_bo
->
virtual
);
ss
=
(
struct
i965_surface_state
*
)((
char
*
)
ss_bo
->
virtual
+
SURFACE_STATE_OFFSET
(
index
));
...
...
@@ -574,6 +596,9 @@ i965_render_src_surface_state(VADriverContextP ctx,
ss
->
ss3
.
pitch
=
pitch
-
1
;
dri_bo_get_tiling
(
region
,
&
tiling
,
&
swizzle
);
i965_render_set_surface_tiling
(
ss
,
tiling
);
dri_bo_emit_reloc
(
ss_bo
,
I915_GEM_DOMAIN_SAMPLER
,
0
,
offset
,
...
...
@@ -698,25 +723,6 @@ i965_subpic_render_src_surfaces_state(VADriverContextP ctx,
i965_subpic_render_src_surface_state
(
ctx
,
2
,
subpic_region
,
0
,
obj_subpic
->
width
,
obj_subpic
->
height
,
obj_subpic
->
pitch
,
obj_subpic
->
format
);
}
static
void
i965_render_set_surface_tiling
(
struct
i965_surface_state
*
ss
,
unsigned
int
tiling
)
{
switch
(
tiling
)
{
case
I915_TILING_NONE
:
ss
->
ss3
.
tiled_surface
=
0
;
ss
->
ss3
.
tile_walk
=
0
;
break
;
case
I915_TILING_X
:
ss
->
ss3
.
tiled_surface
=
1
;
ss
->
ss3
.
tile_walk
=
I965_TILEWALK_XMAJOR
;
break
;
case
I915_TILING_Y
:
ss
->
ss3
.
tiled_surface
=
1
;
ss
->
ss3
.
tile_walk
=
I965_TILEWALK_YMAJOR
;
break
;
}
}
static
void
i965_render_dest_surface_state
(
VADriverContextP
ctx
,
int
index
)
{
...
...
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