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