mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-28 07:03:00 +08:00
chore(vg_lite): remove unnecessary buffer checks (#6921)
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com> Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
This commit is contained in:
parent
9db0ee3d02
commit
f4d95f5253
@ -888,11 +888,6 @@ bool lv_vg_lite_buffer_check(const vg_lite_buffer_t * buffer, bool is_src)
|
||||
return false;
|
||||
}
|
||||
|
||||
if(buffer->stride < 1) {
|
||||
LV_LOG_ERROR("buffer stride(%d) < 1", (int)buffer->stride);
|
||||
return false;
|
||||
}
|
||||
|
||||
if(!(buffer->tiled == VG_LITE_LINEAR || buffer->tiled == VG_LITE_TILED)) {
|
||||
LV_LOG_ERROR("buffer tiled(%d) is invalid", (int)buffer->tiled);
|
||||
return false;
|
||||
@ -903,12 +898,6 @@ bool lv_vg_lite_buffer_check(const vg_lite_buffer_t * buffer, bool is_src)
|
||||
return false;
|
||||
}
|
||||
|
||||
if((uint32_t)(uintptr_t)buffer->memory != buffer->address) {
|
||||
LV_LOG_ERROR("buffer memory(%p) != address(%p)",
|
||||
buffer->memory, (void *)(uintptr_t)buffer->address);
|
||||
return false;
|
||||
}
|
||||
|
||||
if(is_src && buffer->width != (vg_lite_int32_t)lv_vg_lite_width_align(buffer->width)) {
|
||||
LV_LOG_ERROR("buffer width(%d) is not aligned", (int)buffer->width);
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user