How to draw line (using dma2d_draw_ctx->base_draw.draw_line)


I want to replace the software draw line engine of LVGL, and I did it by this line of code:
using dma2d_draw_ctx->base_draw.draw_line.
The signature of the function is:
void lv_draw_stm32_dma2d_line(struct _lv_draw_ctx_t *draw_ctx, const lv_draw_line_dsc_t *dsc, const lv_point_t *point1, const lv_point_t *point2)

I don’t understand what I need to check to draw a line according to LVGL, there is no explanation.
I want to use DMA or DMA2D to do that, so I need to know the height and width…? what else ?
When I tried to use DMA or DMA2D the lines are not visible on the screen.
If there is any information about how or technique, or what I need to know to achieve this I will be happy to hear it.

What MCU/Processor/Board and compiler are you using?

STM32 H7

What LVGL version are you using?


What do you want to achieve?

I want to draw lines using DMA or DMA2D.