summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/softpipe/sp_texture.h
blob: e1a5db279118ccbd6eda9f70c9a346363f9251ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef SP_TEXTURE_H
#define SP_TEXTURE_H


struct pipe_context;
struct pipe_texture;


struct softpipe_texture
{
   struct pipe_texture base;

   unsigned long level_offset[PIPE_MAX_TEXTURE_LEVELS];

   /* The data is held here:
    */
   struct pipe_buffer_handle *buffer;
   unsigned long buffer_size;
};


/** cast wrapper */
static INLINE struct softpipe_texture *
softpipe_texture(struct pipe_texture *pt)
{
   return (struct softpipe_texture *) pt;
}



extern void
softpipe_texture_create(struct pipe_context *pipe, struct pipe_texture **pt);

extern void
softpipe_texture_release(struct pipe_context *pipe, struct pipe_texture **pt);


#endif /* SP_TEXTURE */