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
d33db63b
Commit
d33db63b
authored
Oct 10, 2012
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nv20/fb: fix zcomp register calculation on big-endian systems
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
4ae20745
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
drivers/gpu/drm/nouveau/core/subdev/fb/nv20.c
drivers/gpu/drm/nouveau/core/subdev/fb/nv20.c
+3
-0
drivers/gpu/drm/nouveau/core/subdev/fb/nv25.c
drivers/gpu/drm/nouveau/core/subdev/fb/nv25.c
+3
-0
No files found.
drivers/gpu/drm/nouveau/core/subdev/fb/nv20.c
View file @
d33db63b
...
...
@@ -61,6 +61,9 @@ nv20_fb_tile_comp(struct nouveau_fb *pfb, int i, u32 size, u32 flags,
tile
->
zcomp
|=
0x80000000
;
if
(
bpp
!=
16
)
tile
->
zcomp
|=
0x04000000
;
#ifdef __BIG_ENDIAN
tile
->
zcomp
|=
0x08000000
;
#endif
}
}
...
...
drivers/gpu/drm/nouveau/core/subdev/fb/nv25.c
View file @
d33db63b
...
...
@@ -49,6 +49,9 @@ nv25_fb_tile_comp(struct nouveau_fb *pfb, int i, u32 size, u32 flags,
tile
->
zcomp
|=
0x00100000
;
else
tile
->
zcomp
|=
0x00200000
;
#ifdef __BIG_ENDIAN
tile
->
zcomp
|=
0x01000000
;
#endif
}
}
...
...
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