projects
/
platform
/
adaptation
/
renesas_rcar
/
wayland-kms.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1a8572
)
Fix: store details of 2nd and 3rd planes.
98/30498/4
author
Takanari Hayama
<taki@igel.co.jp>
Thu, 7 Aug 2014 02:02:38 +0000
(11:02 +0900)
committer
Tony SIM
<chinyeow.sim.xt@renesas.com>
Thu, 18 Dec 2014 09:39:06 +0000
(
01:39
-0800)
Change-Id: Ieeff0d7d53401973aad9282acefb49fafcf3c2ad
Signed-off-by: Tony SIM <chinyeow.sim.xt@renesas.com>
wayland-kms.c
patch
|
blob
|
history
diff --git
a/wayland-kms.c
b/wayland-kms.c
index
1bb3534
..
5356cbe
100644
(file)
--- a/
wayland-kms.c
+++ b/
wayland-kms.c
@@
-174,6
+174,16
@@
kms_create_mp_buffer(struct wl_client *client, struct wl_resource *resource,
buffer->stride = buffer->planes[0].stride = stride0;
buffer->fd = buffer->planes[0].fd = fd0;
+ if (nplanes > 1) {
+ buffer->planes[1].stride = stride1;
+ buffer->planes[1].fd = fd1;
+ }
+
+ if (nplanes > 2) {
+ buffer->planes[2].stride = stride2;
+ buffer->planes[2].fd = fd2;
+ }
+
WLKMS_DEBUG("%s: %s: %d planes (%d, %d, %d)\n", __FILE__, __func__, nplanes, fd0, fd1, fd2);
// XXX: Do we need to support multiplaner KMS BO?