summaryrefslogtreecommitdiff
path: root/quantum/painter
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2022-07-02 13:22:46 +1000
committerGitHub <noreply@github.com>2022-07-02 13:22:46 +1000
commitc8fbfca1b614cbe74b1c30aeb1c2c02d5ebe0458 (patch)
tree93a011eb1c0fe8b50094604eb085ec04233903aa /quantum/painter
parent9d70162d53a1e42733562bdab511f649ed0980c2 (diff)
[QP] Explicit buffer alignment. (#17532)
Diffstat (limited to 'quantum/painter')
-rw-r--r--quantum/painter/qp_draw_core.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/quantum/painter/qp_draw_core.c b/quantum/painter/qp_draw_core.c
index c31c734132..309ef93dd0 100644
--- a/quantum/painter/qp_draw_core.c
+++ b/quantum/painter/qp_draw_core.c
@@ -20,17 +20,17 @@ _Static_assert((QUANTUM_PAINTER_PIXDATA_BUFFER_SIZE > 0) && (QUANTUM_PAINTER_PIX
20// 20//
21 21
22// Buffer used for transmitting native pixel data to the downstream device. 22// Buffer used for transmitting native pixel data to the downstream device.
23uint8_t qp_internal_global_pixdata_buffer[QUANTUM_PAINTER_PIXDATA_BUFFER_SIZE]; 23__attribute__((__aligned__(4))) uint8_t qp_internal_global_pixdata_buffer[QUANTUM_PAINTER_PIXDATA_BUFFER_SIZE];
24 24
25// Static buffer to contain a generated color palette 25// Static buffer to contain a generated color palette
26static bool generated_palette = false; 26static bool generated_palette = false;
27static int16_t generated_steps = -1; 27static int16_t generated_steps = -1;
28static qp_pixel_t interpolated_fg_hsv888; 28__attribute__((__aligned__(4))) static qp_pixel_t interpolated_fg_hsv888;
29static qp_pixel_t interpolated_bg_hsv888; 29__attribute__((__aligned__(4))) static qp_pixel_t interpolated_bg_hsv888;
30#if QUANTUM_PAINTER_SUPPORTS_256_PALETTE 30#if QUANTUM_PAINTER_SUPPORTS_256_PALETTE
31qp_pixel_t qp_internal_global_pixel_lookup_table[256]; 31__attribute__((__aligned__(4))) qp_pixel_t qp_internal_global_pixel_lookup_table[256];
32#else 32#else
33qp_pixel_t qp_internal_global_pixel_lookup_table[16]; 33__attribute__((__aligned__(4))) qp_pixel_t qp_internal_global_pixel_lookup_table[16];
34#endif 34#endif
35 35
36//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 36////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////