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
af8b4810
Commit
af8b4810
authored
Jul 03, 2002
by
Linus Torvalds
Committed by
Paul Mackerras
Jul 03, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Radeon DRI merge
parent
d3b1d207
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
drivers/char/drm/radeon_drv.h
drivers/char/drm/radeon_drv.h
+1
-0
drivers/char/drm/radeon_state.c
drivers/char/drm/radeon_state.c
+3
-5
No files found.
drivers/char/drm/radeon_drv.h
View file @
af8b4810
...
...
@@ -477,6 +477,7 @@ extern int radeon_cp_flip( struct inode *inode, struct file *filp,
# define RADEON_CNTL_HOSTDATA_BLT 0x00009400
# define RADEON_CNTL_PAINT_MULTI 0x00009A00
# define RADEON_CNTL_BITBLT_MULTI 0x00009B00
# define RADEON_CNTL_SET_SCISSORS 0xC0001E00
#define RADEON_CP_PACKET_MASK 0xC0000000
#define RADEON_CP_PACKET_COUNT_MASK 0x3fff0000
...
...
drivers/char/drm/radeon_state.c
View file @
af8b4810
...
...
@@ -48,12 +48,10 @@ static inline void radeon_emit_clip_rect( drm_radeon_private_t *dev_priv,
DRM_DEBUG
(
" box: x1=%d y1=%d x2=%d y2=%d
\n
"
,
box
->
x1
,
box
->
y1
,
box
->
x2
,
box
->
y2
);
BEGIN_RING
(
4
);
OUT_RING
(
CP_PACKET
0
(
RADEON_RE_TOP_LEFT
,
0
)
);
BEGIN_RING
(
3
);
OUT_RING
(
CP_PACKET
3
(
RADEON_CNTL_SET_SCISSORS
,
1
)
);
OUT_RING
(
(
box
->
y1
<<
16
)
|
box
->
x1
);
OUT_RING
(
CP_PACKET0
(
RADEON_RE_WIDTH_HEIGHT
,
0
)
);
/* OUT_RING( ((box->y2 - 1) << 16) | (box->x2 - 1) );*/
OUT_RING
(
(
box
->
y2
<<
16
)
|
box
->
x2
);
OUT_RING
(
((
box
->
y2
-
1
)
<<
16
)
|
(
box
->
x2
-
1
)
);
ADVANCE_RING
();
}
...
...
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