summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/i915simple
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@tungstengraphics.com>2007-11-06 14:43:20 +0000
committerJosé Fonseca <jrfonseca@tungstengraphics.com>2007-11-06 14:52:39 +0000
commita06dcfd75b1591bc1db568798f82be721dcc807e (patch)
treea45bfc6d03e2d281797838e196148b414b01fa9c /src/mesa/pipe/i915simple
parentfa1a66d7fc4fd7854de7958a48e4992edd154489 (diff)
Allow custom pipe driver buffer usage flags.
Diffstat (limited to 'src/mesa/pipe/i915simple')
-rw-r--r--src/mesa/pipe/i915simple/i915_prim_vbuf.c2
-rw-r--r--src/mesa/pipe/i915simple/i915_winsys.h5
2 files changed, 6 insertions, 1 deletions
diff --git a/src/mesa/pipe/i915simple/i915_prim_vbuf.c b/src/mesa/pipe/i915simple/i915_prim_vbuf.c
index 75ca6d6e5ef..086ad04d1e6 100644
--- a/src/mesa/pipe/i915simple/i915_prim_vbuf.c
+++ b/src/mesa/pipe/i915simple/i915_prim_vbuf.c
@@ -378,7 +378,7 @@ static void vbuf_flush_elements( struct draw_stage *stage )
vbuf->buf = winsys->buffer_create(winsys, 64);
winsys->buffer_data( winsys, vbuf->buf,
VBUF_SIZE, NULL,
- PIPE_BUFFER_USAGE_VERTEX );
+ I915_BUFFER_USAGE_LIT_VERTEX );
vbuf->vertex_map = winsys->buffer_map(winsys,
vbuf->buf,
PIPE_BUFFER_FLAG_WRITE );
diff --git a/src/mesa/pipe/i915simple/i915_winsys.h b/src/mesa/pipe/i915simple/i915_winsys.h
index 947c5a334d4..cbb851a9323 100644
--- a/src/mesa/pipe/i915simple/i915_winsys.h
+++ b/src/mesa/pipe/i915simple/i915_winsys.h
@@ -37,6 +37,9 @@
#define I915_WINSYS_H
+#include "pipe/p_defines.h"
+
+
/* Pipe drivers are (meant to be!) independent of both GL and the
* window system. The window system provides a buffer manager and a
* set of additional hooks for things like command buffer submission,
@@ -100,6 +103,8 @@ struct i915_winsys {
#define I915_BUFFER_ACCESS_WRITE 0x1
#define I915_BUFFER_ACCESS_READ 0x2
+#define I915_BUFFER_USAGE_LIT_VERTEX (PIPE_BUFFER_USAGE_CUSTOM << 0)
+
struct pipe_context *i915_create( struct pipe_winsys *,
struct i915_winsys *,