mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-21 05:51:45 +08:00
perf(vg_lite): reduce ineffective D-cache flushing operations (#7817)
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com> Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
This commit is contained in:
@@ -850,7 +850,10 @@ bool lv_vg_lite_buffer_open_image(vg_lite_buffer_t * buffer, lv_image_decoder_ds
|
||||
args.stride_align = true;
|
||||
args.use_indexed = true;
|
||||
args.no_cache = no_cache;
|
||||
args.flush_cache = true;
|
||||
|
||||
/** For images output by the GPU itself (such as draw layer),
|
||||
* there is no need to flush the cache */
|
||||
args.flush_cache = !no_cache;
|
||||
|
||||
lv_result_t res = lv_image_decoder_open(decoder_dsc, src, &args);
|
||||
if(res != LV_RESULT_OK) {
|
||||
|
||||
Reference in New Issue
Block a user