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
e592c73b
Commit
e592c73b
authored
Mar 05, 2012
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nve0/disp: nvidia randomly decided to move the dithering method
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
68455a43
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
drivers/gpu/drm/nouveau/nvd0_display.c
drivers/gpu/drm/nouveau/nvd0_display.c
+8
-1
No files found.
drivers/gpu/drm/nouveau/nvd0_display.c
View file @
e592c73b
...
@@ -363,10 +363,12 @@ nvd0_display_flip_next(struct drm_crtc *crtc, struct drm_framebuffer *fb,
...
@@ -363,10 +363,12 @@ nvd0_display_flip_next(struct drm_crtc *crtc, struct drm_framebuffer *fb,
static
int
static
int
nvd0_crtc_set_dither
(
struct
nouveau_crtc
*
nv_crtc
,
bool
update
)
nvd0_crtc_set_dither
(
struct
nouveau_crtc
*
nv_crtc
,
bool
update
)
{
{
struct
drm_nouveau_private
*
dev_priv
=
nv_crtc
->
base
.
dev
->
dev_private
;
struct
drm_device
*
dev
=
nv_crtc
->
base
.
dev
;
struct
drm_device
*
dev
=
nv_crtc
->
base
.
dev
;
struct
nouveau_connector
*
nv_connector
;
struct
nouveau_connector
*
nv_connector
;
struct
drm_connector
*
connector
;
struct
drm_connector
*
connector
;
u32
*
push
,
mode
=
0x00
;
u32
*
push
,
mode
=
0x00
;
u32
mthd
;
nv_connector
=
nouveau_crtc_connector_get
(
nv_crtc
);
nv_connector
=
nouveau_crtc_connector_get
(
nv_crtc
);
connector
=
&
nv_connector
->
base
;
connector
=
&
nv_connector
->
base
;
...
@@ -384,9 +386,14 @@ nvd0_crtc_set_dither(struct nouveau_crtc *nv_crtc, bool update)
...
@@ -384,9 +386,14 @@ nvd0_crtc_set_dither(struct nouveau_crtc *nv_crtc, bool update)
mode
|=
nv_connector
->
dithering_depth
;
mode
|=
nv_connector
->
dithering_depth
;
}
}
if
(
dev_priv
->
card_type
<
NV_E0
)
mthd
=
0x0490
+
(
nv_crtc
->
index
*
0x0300
);
else
mthd
=
0x04a0
+
(
nv_crtc
->
index
*
0x0300
);
push
=
evo_wait
(
dev
,
EVO_MASTER
,
4
);
push
=
evo_wait
(
dev
,
EVO_MASTER
,
4
);
if
(
push
)
{
if
(
push
)
{
evo_mthd
(
push
,
0x0490
+
(
nv_crtc
->
index
*
0x300
)
,
1
);
evo_mthd
(
push
,
mthd
,
1
);
evo_data
(
push
,
mode
);
evo_data
(
push
,
mode
);
if
(
update
)
{
if
(
update
)
{
evo_mthd
(
push
,
0x0080
,
1
);
evo_mthd
(
push
,
0x0080
,
1
);
...
...
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