mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-24 21:10:24 +01:00
dri: unify __DRIcontextRec, __DRIdrawableRec
This commit is contained in:
parent
875a757ddd
commit
e438a36d83
2 changed files with 18 additions and 19 deletions
|
|
@ -113,7 +113,7 @@ extern const struct __DriverAPIRec driDriverAPI;
|
|||
*/
|
||||
struct __DRIdrawableRec {
|
||||
/**
|
||||
* Driver's private drawable information.
|
||||
* Driver's private drawable information.
|
||||
*
|
||||
* This structure is opaque.
|
||||
*/
|
||||
|
|
@ -125,9 +125,19 @@ struct __DRIdrawableRec {
|
|||
*/
|
||||
void *loaderPrivate;
|
||||
|
||||
/**
|
||||
* Pointer to context to which this drawable is currently bound.
|
||||
*/
|
||||
__DRIcontext *driContextPriv;
|
||||
|
||||
/**
|
||||
* Pointer to screen on which this drawable was created.
|
||||
*/
|
||||
__DRIscreen *driScreenPriv;
|
||||
|
||||
/**
|
||||
* Reference count for number of context's currently bound to this
|
||||
* drawable.
|
||||
* drawable.
|
||||
*
|
||||
* Once it reaches zero, the drawable can be destroyed.
|
||||
*
|
||||
|
|
@ -146,16 +156,6 @@ struct __DRIdrawableRec {
|
|||
|
||||
int w, h;
|
||||
|
||||
/**
|
||||
* Pointer to context to which this drawable is currently bound.
|
||||
*/
|
||||
__DRIcontext *driContextPriv;
|
||||
|
||||
/**
|
||||
* Pointer to screen on which this drawable was created.
|
||||
*/
|
||||
__DRIscreen *driScreenPriv;
|
||||
|
||||
/**
|
||||
* Drawable timestamp. Increased when the loader calls invalidate.
|
||||
*/
|
||||
|
|
@ -173,6 +173,11 @@ struct __DRIcontextRec {
|
|||
*/
|
||||
void *driverPrivate;
|
||||
|
||||
/**
|
||||
* The loaders's private context data. This structure is opaque.
|
||||
*/
|
||||
void *loaderPrivate;
|
||||
|
||||
/**
|
||||
* Pointer to drawable currently bound to this context for drawing.
|
||||
*/
|
||||
|
|
@ -188,11 +193,6 @@ struct __DRIcontextRec {
|
|||
*/
|
||||
__DRIscreen *driScreenPriv;
|
||||
|
||||
/**
|
||||
* The loaders's private context data. This structure is opaque.
|
||||
*/
|
||||
void *loaderPrivate;
|
||||
|
||||
struct {
|
||||
int draw_stamp;
|
||||
int read_stamp;
|
||||
|
|
|
|||
|
|
@ -132,8 +132,7 @@ struct __DRIdrawableRec {
|
|||
/* gallium */
|
||||
unsigned int lastStamp;
|
||||
|
||||
int w;
|
||||
int h;
|
||||
int w, h;
|
||||
};
|
||||
|
||||
#endif /* _DRISW_UTIL_H */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue