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
b660cd61
Commit
b660cd61
authored
Apr 06, 2010
by
Zou nan hai
Committed by
Xiang, Haihao
Apr 06, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
i965_drv_video: initialize depth buffer
parent
85ea7684
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
i965_drv_video/i965_defines.h
i965_drv_video/i965_defines.h
+3
-0
i965_drv_video/i965_media.c
i965_drv_video/i965_media.c
+14
-0
No files found.
i965_drv_video/i965_defines.h
View file @
b660cd61
...
...
@@ -35,6 +35,9 @@
#define CMD_CONSTANT_COLOR CMD(3, 1, 1)
#define CMD_3DPRIMITIVE CMD(3, 3, 0)
#define CMD_DEPTH_BUFFER CMD(3, 1, 5)
#define I965_DEPTHFORMAT_D32_FLOAT 1
#define BASE_ADDRESS_MODIFY (1 << 0)
#define PIPELINE_SELECT_3D 0
...
...
i965_drv_video/i965_media.c
View file @
b660cd61
...
...
@@ -166,6 +166,19 @@ i965_media_constant_buffer(VADriverContextP ctx, struct decode_state *decode_sta
ADVANCE_BATCH
(
ctx
);
}
static
void
i965_media_depth_buffer
(
VADriverContextP
ctx
)
{
BEGIN_BATCH
(
ctx
,
6
);
OUT_BATCH
(
ctx
,
CMD_DEPTH_BUFFER
|
4
);
OUT_BATCH
(
ctx
,
(
I965_DEPTHFORMAT_D32_FLOAT
<<
18
)
|
(
I965_SURFACE_NULL
<<
29
));
OUT_BATCH
(
ctx
,
0
);
OUT_BATCH
(
ctx
,
0
);
OUT_BATCH
(
ctx
,
0
);
ADVANCE_BATCH
();
}
static
void
i965_media_pipeline_setup
(
VADriverContextP
ctx
,
struct
decode_state
*
decode_state
)
{
...
...
@@ -174,6 +187,7 @@ i965_media_pipeline_setup(VADriverContextP ctx, struct decode_state *decode_stat
intel_batchbuffer_start_atomic
(
ctx
,
0x1000
);
intel_batchbuffer_emit_mi_flush
(
ctx
);
/* step 1 */
i965_media_depth_buffer
(
ctx
);
i965_media_pipeline_select
(
ctx
);
/* step 2 */
i965_media_urb_layout
(
ctx
);
/* step 3 */
i965_media_pipeline_state
(
ctx
);
/* step 4 */
...
...
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