summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i915pipe/intel_context.h
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2007-08-05 17:23:38 +0100
committerKeith Whitwell <keith@tungstengraphics.com>2007-08-05 17:25:36 +0100
commit1d1b9e6be45e75ad12a01c82e3c0d55ff9da4183 (patch)
treece6fc42afb3c1bdc9224309052f444776cf56ad5 /src/mesa/drivers/dri/i915pipe/intel_context.h
parent5e7921b77874ce0142f0ab032c710a379d86ff09 (diff)
Add a new interface between softpipe and the window system / buffer manager.
This interface is defined by softpipe and any window system (eg i915pipe) wishing to use softpipe is required to implement the interface. Currently the interface is all about buffer management. Generalizing, each pipe driver will advertise an interface in a similar spirit to this, and again any window system driver wishing to use that rendering pipeline will have to implement the interface it defines. It clearly isn't a one-way street however, as softpipe could just do its own buffer management with malloc. The interaction with a buffer manager is desired to allow us to exercise the hardware swapbuffers functionality of the i915pipe driver, and also to get a feel for the way hardware drivers which really need a buffer manager will work.
Diffstat (limited to 'src/mesa/drivers/dri/i915pipe/intel_context.h')
-rw-r--r--src/mesa/drivers/dri/i915pipe/intel_context.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i915pipe/intel_context.h b/src/mesa/drivers/dri/i915pipe/intel_context.h
index 6c728dfe73..ad55e7eef2 100644
--- a/src/mesa/drivers/dri/i915pipe/intel_context.h
+++ b/src/mesa/drivers/dri/i915pipe/intel_context.h
@@ -196,6 +196,13 @@ extern void intelFlush(GLcontext * ctx);
extern void intelInitDriverFunctions(struct dd_function_table *functions);
+/* ================================================================
+ * intel_softpipe.c:
+ */
+
+struct pipe_context *
+intel_create_softpipe( struct intel_context *intel );
+
#define MI_BATCH_BUFFER_END (0xA<<23)