diff options
author | Brian <brian@i915.localnet.net> | 2007-08-07 13:13:41 -0600 |
---|---|---|
committer | Brian <brian@i915.localnet.net> | 2007-08-07 13:13:41 -0600 |
commit | b23f358cbc36a2b6a9e7609290a7458fa48f7ccb (patch) | |
tree | b993aff460f679f2c28b06e5f123f90d687255d8 /src/mesa/pipe/p_context.h | |
parent | 281dad225947b4f00bfc5e785d92d2a7c2f06afe (diff) |
sketch out new pipe surface/sampler types
Diffstat (limited to 'src/mesa/pipe/p_context.h')
-rw-r--r-- | src/mesa/pipe/p_context.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/mesa/pipe/p_context.h b/src/mesa/pipe/p_context.h index 08b9b18393..3062eda329 100644 --- a/src/mesa/pipe/p_context.h +++ b/src/mesa/pipe/p_context.h @@ -130,6 +130,10 @@ struct pipe_context { struct pipe_surface *(*surface_alloc)(struct pipe_context *pipe, GLuint format); + struct pipe_surface *(*get_tex_surface)(struct pipe_context *pipe, + struct pipe_mipmap_tree *texture, + GLuint face, GLuint level, + GLuint zslice); /* * Memory region functions @@ -230,5 +234,16 @@ pipe_region_reference(struct pipe_region **dst, struct pipe_region *src) } +static INLINE void +pipe_surface_reference(struct pipe_surface **dst, struct pipe_surface *src) +{ + assert(*dst == NULL); + if (src) { + src->refcount++; + *dst = src; + } +} + + #endif /* PIPE_CONTEXT_H */ |