summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-08-11 16:59:54 +0100
committerBrian <[email protected]>2007-08-11 16:59:54 +0100
commitbec2230514ad2e8e52625ecb339fcadfabffd4df (patch)
treeb6a6a5f34eac4eda8e2b136e6ea94bfd4a7bba4d /src
parent0b13336540b887601d5d9c3106aeece848bf589f (diff)
move pipe_buffer_handle definition to top of file, use it in pipe_region
Diffstat (limited to 'src')
-rw-r--r--src/mesa/pipe/p_state.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mesa/pipe/p_state.h b/src/mesa/pipe/p_state.h
index df456cc2edd..6799fdb31c8 100644
--- a/src/mesa/pipe/p_state.h
+++ b/src/mesa/pipe/p_state.h
@@ -55,6 +55,9 @@
/* fwd decl */
struct pipe_surface;
+/* opaque type */
+struct pipe_buffer_handle;
+
/***
*** State objects
@@ -238,7 +241,7 @@ struct pipe_sampler_state
struct pipe_region
{
- void *buffer; /**< driver private buffer handle */
+ struct pipe_buffer_handle *buffer; /**< driver private buffer handle */
GLuint refcount; /**< Reference count for region */
GLuint cpp; /**< bytes per pixel */
@@ -326,8 +329,4 @@ struct pipe_mipmap_tree
};
-
-struct pipe_buffer_handle;
-
-
#endif