fix(draw_buf): flush D-Cache after clear buffer (#7550)
Arduino Lint / lint (push) Waiting to run
MicroPython CI / Build ${{ matrix.port }} port (esp32) (push) Waiting to run
MicroPython CI / Build ${{ matrix.port }} port (rp2) (push) Waiting to run
MicroPython CI / Build ${{ matrix.port }} port (stm32) (push) Waiting to run
MicroPython CI / Build ${{ matrix.port }} port (unix) (push) Waiting to run
C/C++ CI / Build ${{ matrix.build_option }} (OPTIONS_16BIT) (push) Waiting to run
C/C++ CI / Build ${{ matrix.build_option }} (OPTIONS_24BIT) (push) Waiting to run
C/C++ CI / Build ${{ matrix.build_option }} (OPTIONS_FULL_32BIT) (push) Waiting to run
C/C++ CI / Build ${{ matrix.build_option }} (OPTIONS_SDL) (push) Waiting to run
C/C++ CI / Build ${{ matrix.build_option }} (OPTIONS_VG_LITE) (push) Waiting to run
C/C++ CI / Build Windows GCC (push) Waiting to run
C/C++ CI / Build Windows MSVC (push) Waiting to run
C/C++ CI / Build ESP IDF ESP32S3 (push) Waiting to run
C/C++ CI / Run tests with ${{ matrix.build_config }} (32bit build) (push) Waiting to run
C/C++ CI / Run tests with ${{ matrix.build_config }} (64bit build) (push) Waiting to run
BOM Check / bom-check (push) Waiting to run
Verify that lv_conf_internal.h matches repository state / verify-conf-internal (push) Waiting to run
Verify the widget property name / verify-property-name (push) Waiting to run
Verify code formatting / verify-formatting (push) Waiting to run
Build docs / build-and-deploy (push) Waiting to run
Test API JSON generator / Test API JSON (push) Waiting to run
Check Makefile / Build using Makefile (push) Waiting to run
Check Makefile for UEFI / Build using Makefile for UEFI (push) Waiting to run
Verify Kconfig / verify-kconfig (push) Waiting to run

Signed-off-by: wxd <xaowang96@gmail.com>
This commit is contained in:
xaowang
2025-01-06 20:27:01 +08:00
committed by GitHub
parent 2b4d7b0e1c
commit f27c65bf4a
+2
View File
@@ -171,6 +171,7 @@ void lv_draw_buf_clear(lv_draw_buf_t * draw_buf, const lv_area_t * a)
if(a == NULL) {
uint8_t * buf = lv_draw_buf_goto_xy(draw_buf, 0, 0);
lv_memzero(buf, header->h * stride);
lv_draw_buf_flush_cache(draw_buf, a);
LV_PROFILER_DRAW_END;
return;
}
@@ -205,6 +206,7 @@ void lv_draw_buf_clear(lv_draw_buf_t * draw_buf, const lv_area_t * a)
lv_memzero(buf, line_length);
buf += stride;
}
lv_draw_buf_flush_cache(draw_buf, a);
LV_PROFILER_DRAW_END;
}