... | @@ -92,7 +92,7 @@ for your GPU externally. |
... | @@ -92,7 +92,7 @@ for your GPU externally. |
|
|
|
|
|
First, you need to implement the following external stub:
|
|
First, you need to implement the following external stub:
|
|
|
|
|
|
```C
|
|
```cpp
|
|
DriDriverOps* __dri_ex_driver_get (const char* driver_name);
|
|
DriDriverOps* __dri_ex_driver_get (const char* driver_name);
|
|
```
|
|
```
|
|
|
|
|
... | @@ -110,7 +110,7 @@ instead. |
... | @@ -110,7 +110,7 @@ instead. |
|
The `DriDriverOps` is a struct type consisted by a set of operators
|
|
The `DriDriverOps` is a struct type consisted by a set of operators
|
|
(callbacks):
|
|
(callbacks):
|
|
|
|
|
|
```C
|
|
```cpp
|
|
/**
|
|
/**
|
|
* The struct type defines the operators for a DRI driver.
|
|
* The struct type defines the operators for a DRI driver.
|
|
*/
|
|
*/
|
... | @@ -255,7 +255,7 @@ need this pointer as the context of your DRI driver. |
... | @@ -255,7 +255,7 @@ need this pointer as the context of your DRI driver. |
|
Note that MiniGUI does not defined the detailed structure of
|
|
Note that MiniGUI does not defined the detailed structure of
|
|
`DriDriver`, it is up to your implementation:
|
|
`DriDriver`, it is up to your implementation:
|
|
|
|
|
|
```C
|
|
```cpp
|
|
/**
|
|
/**
|
|
* The struct type represents the DRI sub driver.
|
|
* The struct type represents the DRI sub driver.
|
|
* The concrete struct should be defined by the driver.
|
|
* The concrete struct should be defined by the driver.
|
... | | ... | |