1 #ifndef DRI2_BUFFER_H
2 #define DRI2_BUFFER_H
3 
4 #include "dri_util.h"
5 
6 struct pipe_surface;
7 
8 struct dri2_buffer
9 {
10    __DRIbuffer base;
11    struct pipe_resource *resource;
12 };
13 
14 static INLINE struct dri2_buffer *
dri2_buffer(__DRIbuffer * driBufferPriv)15 dri2_buffer(__DRIbuffer * driBufferPriv)
16 {
17    return (struct dri2_buffer *) driBufferPriv;
18 }
19 
20 #endif
21 
22 /* vim: set sw=3 ts=8 sts=3 expandtab: */
23