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:
VIFEX
2025-02-22 01:45:09 +08:00
committed by GitHub
parent 93cef1274a
commit 5856e46079
+4 -1
View File
@@ -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) {