lcd framebuffer - Bugfix #2 ensure proper alignment

-- apparenty 0x4 aligned doesn't work properly

requires 0x8 alignment at least for the h10 20gb
but enabled for all processors that define MEM_ALIGN_ATTR

Change-Id: I11edaab183b91a6d158f1f439f173b9b699dc914
This commit is contained in:
William Wilgus 2021-03-25 00:32:26 -04:00
parent a53864ed4a
commit 3a5c5edbf6

View file

@ -27,6 +27,7 @@
#include "cpu.h"
#include "config.h"
#include "events.h"
#include "system.h"
/* Frame buffer stride
@ -165,9 +166,9 @@ struct frame_buffer_t {
fb_remote_data *fb_remote_ptr;
#endif
};
void *(*get_address_fn)(int x, int y);
ptrdiff_t stride;
size_t elems;
void *(*get_address_fn)(int x, int y) MEM_ALIGN_ATTR;
};
#define VP_FLAG_ALIGN_RIGHT 0x01