[PATCH v2 3/7] arm/raspberrypi: Raspberry Pi v2 ALLOCATE_BUFFER VC4 operation returns direct address.
ppisa4lists at pikron.com
ppisa4lists at pikron.com
Sun May 22 00:13:06 UTC 2016
From: Pavel Pisa <ppisa at pikron.com>
---
c/src/lib/libbsp/arm/raspberrypi/misc/vc.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/c/src/lib/libbsp/arm/raspberrypi/misc/vc.c b/c/src/lib/libbsp/arm/raspberrypi/misc/vc.c
index 9c89fab..54935af 100644
--- a/c/src/lib/libbsp/arm/raspberrypi/misc/vc.c
+++ b/c/src/lib/libbsp/arm/raspberrypi/misc/vc.c
@@ -124,8 +124,12 @@ bcm2835_mailbox_init_frame_buffer(bcm2835_init_frame_buffer_entries* _entries)
_entries->xvirt = buffer.set_virtual_size.body.resp.vwidth;
_entries->yvirt = buffer.set_virtual_size.body.resp.vheight;
_entries->depth = buffer.set_depth.body.resp.depth;
+#if (BSP_IS_RPI2 == 1)
+ _entries->base = buffer.allocate_buffer.body.resp.base;
+#else
_entries->base = buffer.allocate_buffer.body.resp.base
- BCM2835_VC_MEMORY_MAPPING;
+#endif
_entries->size = buffer.allocate_buffer.body.resp.size;
_entries->pixel_order = buffer.set_pixel_order.body.resp.pixel_order;
_entries->alpha_mode = buffer.set_alpha_mode.body.resp.alpha_mode;
--
1.9.1
More information about the devel
mailing list