diff options
author | Emil Velikov <[email protected]> | 2018-08-24 14:05:59 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2018-10-03 13:38:05 +0100 |
commit | 80b62e2d6d2559a2c3f76e4ac06b9386a576d0e3 (patch) | |
tree | 9067f8b61d2858918b6fca0847ae3ff56cb4017d /src/gallium/state_trackers/dri/dri2.c | |
parent | 89c2c386c02ef7bc56a11769b0d617261d6a37ea (diff) |
st/dri: inline dri2_buffer.h within dri2.c
The header was used only by dri2.c, containing a two-member struct and cast wrapper.
Just inline it where it's used/needed.
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/dri/dri2.c')
-rw-r--r-- | src/gallium/state_trackers/dri/dri2.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/dri/dri2.c b/src/gallium/state_trackers/dri/dri2.c index 2411a369c5d..20540e39881 100644 --- a/src/gallium/state_trackers/dri/dri2.c +++ b/src/gallium/state_trackers/dri/dri2.c @@ -45,15 +45,28 @@ #include "main/bufferobj.h" #include "main/texobj.h" +#include "dri_util.h" + #include "dri_helpers.h" #include "dri_drawable.h" #include "dri_query_renderer.h" -#include "dri2_buffer.h" #ifndef DRM_FORMAT_MOD_INVALID #define DRM_FORMAT_MOD_INVALID ((1ULL<<56) - 1) #endif +struct dri2_buffer +{ + __DRIbuffer base; + struct pipe_resource *resource; +}; + +static inline struct dri2_buffer * +dri2_buffer(__DRIbuffer * driBufferPriv) +{ + return (struct dri2_buffer *) driBufferPriv; +} + static const int fourcc_formats[] = { __DRI_IMAGE_FOURCC_ARGB2101010, __DRI_IMAGE_FOURCC_XRGB2101010, |