summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/dri/dri2_buffer.h
blob: 0cee4e906e666c6b1b50435b4d2a0b68b7c3257b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef DRI2_BUFFER_H
#define DRI2_BUFFER_H

#include "dri_util.h"

struct pipe_surface;

struct dri2_buffer
{
   __DRIbuffer base;
   struct pipe_resource *resource;
};

static inline struct dri2_buffer *
dri2_buffer(__DRIbuffer * driBufferPriv)
{
   return (struct dri2_buffer *) driBufferPriv;
}

#endif

/* vim: set sw=3 ts=8 sts=3 expandtab: */