projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a10967
)
drm/vc4: Fix scaling of uni-planar formats
author
Boris Brezillon
<
[email protected]
>
Mon, 7 May 2018 12:13:03 +0000
(14:13 +0200)
committer
Boris Brezillon
<
[email protected]
>
Wed, 9 May 2018 07:48:23 +0000
(09:48 +0200)
When using uni-planar formats (like RGB), the scaling parameters are
stored in plane 0, not plane 1.
Fixes: fc04023fafec ("drm/vc4: Add support for YUV planes.")
Cc:
[email protected]
Signed-off-by: Boris Brezillon <
[email protected]
>
Reviewed-by: Eric Anholt <
[email protected]
>
Link:
https://patchwork.freedesktop.org/patch/msgid/
[email protected]
drivers/gpu/drm/vc4/vc4_plane.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/vc4/vc4_plane.c
b/drivers/gpu/drm/vc4/vc4_plane.c
index ce39390be389305bdd10a2641234785f465308f0..13dcaad06798d233b620872872c8ab50ee3c001f 100644
(file)
--- a/
drivers/gpu/drm/vc4/vc4_plane.c
+++ b/
drivers/gpu/drm/vc4/vc4_plane.c
@@
-503,7
+503,7
@@
static int vc4_plane_mode_set(struct drm_plane *plane,
* the scl fields here.
*/
if (num_planes == 1) {
- scl0 = vc4_get_scl_field(state,
1
);
+ scl0 = vc4_get_scl_field(state,
0
);
scl1 = scl0;
} else {
scl0 = vc4_get_scl_field(state, 1);