# Dave2D GPU (/integration/chip_vendors/renesas/dave2d_gpu)



[Dave2D](https://www.renesas.com/document/mas/tes-dave2d-driver-documentation) (also written as
D/AVE 2D) is the 2D GPU found in Renesas RA and RZ/A devices. LVGL contains a built-in draw
unit for it, so the accelerated operations are dispatched to the GPU while the CPU is free to
run the rest of the application.

Accelerated Operations [#accelerated-operations]

Dave2D can accelerate most of the [drawing](/main-modules/draw) operations of LVGL:

* Rectangle drawing, even with gradients
* Image drawing, scaling, and rotation
* Letter drawing
* Triangle drawing
* Line drawing

Everything that Dave2D cannot handle is rendered by LVGL's software renderer, so no operation
is lost by enabling the GPU.

Prerequisites [#prerequisites]

* The **D/AVE 2D** driver needs to be added to the project in the `Configuration Window` of
  e² studio. The LVGL draw unit includes the FSP headers `bsp_api.h` and `dave_driver.h`, so
  missing this step causes a compilation error.
* The boards LVGL maintains a project for already have the driver configured. See the
  [RA Family](/integration/chip_vendors/renesas/ra_family) and
  [RZ/A Family](/integration/chip_vendors/renesas/rza_family) pages.

Usage [#usage]

Set <ApiLink name="LV_USE_DRAW_DAVE2D" /> to `1` in your `lv_conf.h`:

```c title=" " lineNumbers=1
#define LV_USE_DRAW_DAVE2D 1
```

There is nothing else to do. No platform-specific function needs to be implemented and no
drawing code needs to be changed.

Supported image color formats [#supported-image-color-formats]

Images are accelerated in the following color formats:

* <ApiLink name="LV_COLOR_FORMAT_A8" />
* <ApiLink name="LV_COLOR_FORMAT_RGB565" />
* <ApiLink name="LV_COLOR_FORMAT_ARGB1555" />
* <ApiLink name="LV_COLOR_FORMAT_ARGB4444" />
* <ApiLink name="LV_COLOR_FORMAT_ARGB8888" />
* <ApiLink name="LV_COLOR_FORMAT_XRGB8888" />

<Callout type="info">
  <ApiLink name="LV_COLOR_FORMAT_RGB888" /> is a 3 byte format, while the matching Dave2D mode is
  a 4 byte format. Therefore RGB888 images are drawn by the software renderer.
</Callout>

Fine-tuning [#fine-tuning]

`LV_DAVE2D_MAX_DRAW_PRESSURE` controls how many pending drawing tasks are collected into one
display list before it is submitted to the GPU. Its default value is `256`, which is also the
minimum; with smaller values the Dave engine may crash.
