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
nexedi
linux
Commits
fb4b152a
Commit
fb4b152a
authored
Jul 10, 2003
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update r128 driver from DRI CVS: add support for ycbcr textures.
(version 2.3.0 -> 2.4.0)
parent
c2cff270
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
3 deletions
+16
-3
drivers/char/drm/r128.h
drivers/char/drm/r128.h
+7
-3
drivers/char/drm/r128_drv.h
drivers/char/drm/r128_drv.h
+7
-0
drivers/char/drm/r128_state.c
drivers/char/drm/r128_state.c
+2
-0
No files found.
drivers/char/drm/r128.h
View file @
fb4b152a
...
...
@@ -47,13 +47,17 @@
#define DRIVER_NAME "r128"
#define DRIVER_DESC "ATI Rage 128"
#define DRIVER_DATE "200
21029
"
#define DRIVER_DATE "200
30526
"
#define DRIVER_MAJOR 2
#define DRIVER_MINOR
3
#define DRIVER_MINOR
4
#define DRIVER_PATCHLEVEL 0
/* Interface history:
*
* ?? - ??
* 2.4 - Add support for ycbcr textures (no new ioctls)
*/
#define DRIVER_IOCTLS \
[DRM_IOCTL_NR(DRM_IOCTL_DMA)] = { r128_cce_buffers, 1, 0 }, \
[DRM_IOCTL_NR(DRM_IOCTL_R128_INIT)] = { r128_cce_init, 1, 1 }, \
...
...
drivers/char/drm/r128_drv.h
View file @
fb4b152a
...
...
@@ -343,13 +343,20 @@ extern int r128_cce_indirect( DRM_IOCTL_ARGS );
#define R128_CCE_VC_CNTL_PRIM_WALK_RING 0x00000030
#define R128_CCE_VC_CNTL_NUM_SHIFT 16
#define R128_DATATYPE_VQ 0
#define R128_DATATYPE_CI4 1
#define R128_DATATYPE_CI8 2
#define R128_DATATYPE_ARGB1555 3
#define R128_DATATYPE_RGB565 4
#define R128_DATATYPE_RGB888 5
#define R128_DATATYPE_ARGB8888 6
#define R128_DATATYPE_RGB332 7
#define R128_DATATYPE_Y8 8
#define R128_DATATYPE_RGB8 9
#define R128_DATATYPE_CI16 10
#define R128_DATATYPE_YVYU422 11
#define R128_DATATYPE_VYUY422 12
#define R128_DATATYPE_AYUV444 14
#define R128_DATATYPE_ARGB4444 15
/* Constants */
...
...
drivers/char/drm/r128_state.c
View file @
fb4b152a
...
...
@@ -802,6 +802,8 @@ static int r128_cce_dispatch_blit( DRMFILE filp,
case
R128_DATATYPE_ARGB1555
:
case
R128_DATATYPE_RGB565
:
case
R128_DATATYPE_ARGB4444
:
case
R128_DATATYPE_YVYU422
:
case
R128_DATATYPE_VYUY422
:
dword_shift
=
1
;
break
;
case
R128_DATATYPE_CI8
:
...
...
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