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
a0a76244
Commit
a0a76244
authored
Jun 11, 2019
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/kms/gv100-: attach alpha property to planes
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
9a99e904
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletion
+7
-1
drivers/gpu/drm/nouveau/dispnv50/atom.h
drivers/gpu/drm/nouveau/dispnv50/atom.h
+1
-0
drivers/gpu/drm/nouveau/dispnv50/wndw.c
drivers/gpu/drm/nouveau/dispnv50/wndw.c
+5
-0
drivers/gpu/drm/nouveau/dispnv50/wndwc37e.c
drivers/gpu/drm/nouveau/dispnv50/wndwc37e.c
+1
-1
No files found.
drivers/gpu/drm/nouveau/dispnv50/atom.h
View file @
a0a76244
...
...
@@ -223,6 +223,7 @@ struct nv50_wndw_atom {
struct
{
u8
depth
;
u8
k1
;
}
blend
;
union
nv50_wndw_atom_mask
{
...
...
drivers/gpu/drm/nouveau/dispnv50/wndw.c
View file @
a0a76244
...
...
@@ -288,6 +288,7 @@ nv50_wndw_atomic_check_acquire(struct nv50_wndw *wndw, bool modeset,
if
(
wndw
->
func
->
blend_set
)
{
asyw
->
blend
.
depth
=
255
-
asyw
->
state
.
normalized_zpos
;
asyw
->
blend
.
k1
=
asyw
->
state
.
alpha
>>
8
;
if
(
memcmp
(
&
armw
->
blend
,
&
asyw
->
blend
,
sizeof
(
asyw
->
blend
)))
asyw
->
set
.
blend
=
true
;
}
...
...
@@ -656,6 +657,10 @@ nv50_wndw_new_(const struct nv50_wndw_func *func, struct drm_device *dev,
nv50_wndw_zpos_default
(
&
wndw
->
plane
),
0
,
254
);
if
(
ret
)
return
ret
;
ret
=
drm_plane_create_alpha_property
(
&
wndw
->
plane
);
if
(
ret
)
return
ret
;
}
else
{
ret
=
drm_plane_create_zpos_immutable_property
(
&
wndw
->
plane
,
nv50_wndw_zpos_default
(
&
wndw
->
plane
));
...
...
drivers/gpu/drm/nouveau/dispnv50/wndwc37e.c
View file @
a0a76244
...
...
@@ -88,7 +88,7 @@ wndwc37e_blend_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw)
if
((
push
=
evo_wait
(
&
wndw
->
wndw
,
8
)))
{
evo_mthd
(
push
,
0x02ec
,
7
);
evo_data
(
push
,
asyw
->
blend
.
depth
<<
4
);
evo_data
(
push
,
0x000000ff
);
evo_data
(
push
,
asyw
->
blend
.
k1
);
evo_data
(
push
,
0x00007722
);
evo_data
(
push
,
0xffff0000
);
evo_data
(
push
,
0xffff0000
);
...
...
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