Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
21efa2ba
Commit
21efa2ba
authored
Jun 19, 2008
by
Dave Airlie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/radeon: add hier-z registers for r300 and r500 chipsets
parent
5e35eff1
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
189 additions
and
59 deletions
+189
-59
drivers/char/drm/r300_cmdbuf.c
drivers/char/drm/r300_cmdbuf.c
+12
-12
drivers/char/drm/r300_reg.h
drivers/char/drm/r300_reg.h
+177
-47
No files found.
drivers/char/drm/r300_cmdbuf.c
View file @
21efa2ba
...
@@ -190,7 +190,7 @@ void r300_init_reg_flags(struct drm_device *dev)
...
@@ -190,7 +190,7 @@ void r300_init_reg_flags(struct drm_device *dev)
ADD_RANGE
(
0x42C0
,
2
);
ADD_RANGE
(
0x42C0
,
2
);
ADD_RANGE
(
R300_RS_CNTL_0
,
2
);
ADD_RANGE
(
R300_RS_CNTL_0
,
2
);
ADD_RANGE
(
0x43A4
,
2
);
ADD_RANGE
(
R300_SC_HYPERZ
,
2
);
ADD_RANGE
(
0x43E8
,
1
);
ADD_RANGE
(
0x43E8
,
1
);
ADD_RANGE
(
0x46A4
,
5
);
ADD_RANGE
(
0x46A4
,
5
);
...
@@ -209,14 +209,12 @@ void r300_init_reg_flags(struct drm_device *dev)
...
@@ -209,14 +209,12 @@ void r300_init_reg_flags(struct drm_device *dev)
ADD_RANGE
(
0x4E50
,
9
);
ADD_RANGE
(
0x4E50
,
9
);
ADD_RANGE
(
0x4E88
,
1
);
ADD_RANGE
(
0x4E88
,
1
);
ADD_RANGE
(
0x4EA0
,
2
);
ADD_RANGE
(
0x4EA0
,
2
);
ADD_RANGE
(
R300_RB3D_ZSTENCIL_CNTL_0
,
3
);
ADD_RANGE
(
R300_ZB_CNTL
,
3
);
ADD_RANGE
(
R300_RB3D_ZSTENCIL_FORMAT
,
4
);
ADD_RANGE
(
R300_ZB_FORMAT
,
4
);
ADD_RANGE_MARK
(
R300_RB3D_DEPTHOFFSET
,
1
,
MARK_CHECK_OFFSET
);
/* check offset */
ADD_RANGE_MARK
(
R300_ZB_DEPTHOFFSET
,
1
,
MARK_CHECK_OFFSET
);
/* check offset */
ADD_RANGE
(
R300_RB3D_DEPTHPITCH
,
1
);
ADD_RANGE
(
R300_ZB_DEPTHPITCH
,
1
);
ADD_RANGE
(
0x4F28
,
1
);
ADD_RANGE
(
R300_ZB_DEPTHCLEARVALUE
,
1
);
ADD_RANGE
(
0x4F30
,
2
);
ADD_RANGE
(
R300_ZB_ZMASK_OFFSET
,
13
);
ADD_RANGE
(
0x4F44
,
1
);
ADD_RANGE
(
0x4F54
,
1
);
ADD_RANGE
(
R300_TX_FILTER_0
,
16
);
ADD_RANGE
(
R300_TX_FILTER_0
,
16
);
ADD_RANGE
(
R300_TX_FILTER1_0
,
16
);
ADD_RANGE
(
R300_TX_FILTER1_0
,
16
);
...
@@ -229,7 +227,7 @@ void r300_init_reg_flags(struct drm_device *dev)
...
@@ -229,7 +227,7 @@ void r300_init_reg_flags(struct drm_device *dev)
ADD_RANGE
(
R300_TX_BORDER_COLOR_0
,
16
);
ADD_RANGE
(
R300_TX_BORDER_COLOR_0
,
16
);
/* Sporadic registers used as primitives are emitted */
/* Sporadic registers used as primitives are emitted */
ADD_RANGE
(
R300_
RB3D
_ZCACHE_CTLSTAT
,
1
);
ADD_RANGE
(
R300_
ZB
_ZCACHE_CTLSTAT
,
1
);
ADD_RANGE
(
R300_RB3D_DSTCACHE_CTLSTAT
,
1
);
ADD_RANGE
(
R300_RB3D_DSTCACHE_CTLSTAT
,
1
);
ADD_RANGE
(
R300_VAP_INPUT_ROUTE_0_0
,
8
);
ADD_RANGE
(
R300_VAP_INPUT_ROUTE_0_0
,
8
);
ADD_RANGE
(
R300_VAP_INPUT_ROUTE_1_0
,
8
);
ADD_RANGE
(
R300_VAP_INPUT_ROUTE_1_0
,
8
);
...
@@ -243,6 +241,7 @@ void r300_init_reg_flags(struct drm_device *dev)
...
@@ -243,6 +241,7 @@ void r300_init_reg_flags(struct drm_device *dev)
ADD_RANGE
(
R500_RS_INST_0
,
16
);
ADD_RANGE
(
R500_RS_INST_0
,
16
);
ADD_RANGE
(
R500_RB3D_COLOR_CLEAR_VALUE_AR
,
2
);
ADD_RANGE
(
R500_RB3D_COLOR_CLEAR_VALUE_AR
,
2
);
ADD_RANGE
(
R500_RB3D_CONSTANT_COLOR_AR
,
2
);
ADD_RANGE
(
R500_RB3D_CONSTANT_COLOR_AR
,
2
);
ADD_RANGE
(
R500_ZB_FIFO_SIZE
,
2
);
}
else
{
}
else
{
ADD_RANGE
(
R300_PFS_CNTL_0
,
3
);
ADD_RANGE
(
R300_PFS_CNTL_0
,
3
);
ADD_RANGE
(
R300_PFS_NODE_0
,
4
);
ADD_RANGE
(
R300_PFS_NODE_0
,
4
);
...
@@ -719,8 +718,9 @@ static __inline__ void r300_pacify(drm_radeon_private_t *dev_priv)
...
@@ -719,8 +718,9 @@ static __inline__ void r300_pacify(drm_radeon_private_t *dev_priv)
BEGIN_RING
(
6
);
BEGIN_RING
(
6
);
OUT_RING
(
CP_PACKET0
(
R300_RB3D_DSTCACHE_CTLSTAT
,
0
));
OUT_RING
(
CP_PACKET0
(
R300_RB3D_DSTCACHE_CTLSTAT
,
0
));
OUT_RING
(
R300_RB3D_DSTCACHE_UNKNOWN_0A
);
OUT_RING
(
R300_RB3D_DSTCACHE_UNKNOWN_0A
);
OUT_RING
(
CP_PACKET0
(
R300_RB3D_ZCACHE_CTLSTAT
,
0
));
OUT_RING
(
CP_PACKET0
(
R300_ZB_ZCACHE_CTLSTAT
,
0
));
OUT_RING
(
R300_RB3D_ZCACHE_UNKNOWN_03
);
OUT_RING
(
R300_ZB_ZCACHE_CTLSTAT_ZC_FLUSH_FLUSH_AND_FREE
|
R300_ZB_ZCACHE_CTLSTAT_ZC_FREE_FREE
);
OUT_RING
(
CP_PACKET3
(
RADEON_CP_NOP
,
0
));
OUT_RING
(
CP_PACKET3
(
RADEON_CP_NOP
,
0
));
OUT_RING
(
0x0
);
OUT_RING
(
0x0
);
ADVANCE_RING
();
ADVANCE_RING
();
...
...
drivers/char/drm/r300_reg.h
View file @
21efa2ba
This diff is collapsed.
Click to expand it.
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