... | ... | @@ -3,10 +3,10 @@ _Writing a driver of the DRI engine for your GPU._ |
|
|
Table of Contents
|
|
|
|
|
|
- [Overview](#overview)
|
|
|
* [Compile-time configuration](#compile-time-configuration)
|
|
|
* [Run-time configuration](#run-time-configuration)
|
|
|
* [Implement DRI driver](#implement-dri-driver)
|
|
|
* [Restrictions](#restrictions)
|
|
|
- [Compile-time Configuration](#compile-time-configuration)
|
|
|
- [Run-time Configuration](#run-time-configuration)
|
|
|
- [Implement DRI driver](#implementing-dri-driver)
|
|
|
- [Restrictions](#restrictions)
|
|
|
- [Example](#example)
|
|
|
- [Future Feature](#future-feature)
|
|
|
|
... | ... | @@ -42,7 +42,7 @@ Note that, generally, the driver will be implemented by the GPU |
|
|
or SoC vendors. The MiniGUI app developers do not need to
|
|
|
care about this.
|
|
|
|
|
|
### Compile-time configuration
|
|
|
## Compile-time Configuration
|
|
|
|
|
|
There are two configure options related to the `dri` engine:
|
|
|
|
... | ... | @@ -55,7 +55,7 @@ There are two configure options related to the `dri` engine: |
|
|
to initialize the DRI driver. If you do not implement this function,
|
|
|
the link will fail.
|
|
|
|
|
|
### Run-time configuration
|
|
|
## Run-time Configuration
|
|
|
|
|
|
For `dri` engine, we introduce a new section in MiniGUI runtime
|
|
|
configuration:
|
... | ... | @@ -84,7 +84,7 @@ of the screen surface in MiniGUI run-time configuration. For example, |
|
|
For more information, please see `<drm/drm_fourcc.h>` header file.
|
|
|
Note that only 8/16/24/32 bpp RGB formats are supported.
|
|
|
|
|
|
### Implement DRI driver
|
|
|
## Implementing DRI driver
|
|
|
|
|
|
The header file `<minigui/exstubs.h>` defines the external sutbs and
|
|
|
the driver operators (a set of callback functions) you need to implement
|
... | ... | @@ -260,7 +260,7 @@ Note that MiniGUI does not defined the detailed structure of |
|
|
|
|
|
For other operators, please see the comments above.
|
|
|
|
|
|
### Restrictions
|
|
|
## Restrictions
|
|
|
|
|
|
In version 4.0.0, the `dri` NEWGAL engine does not provide support for
|
|
|
MiniGUI-Processes run-time mode. We will enhance this in the subsequent
|
... | ... | |