diff options
author | Eric Anholt <eric@anholt.net> | 2008-06-20 15:00:44 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2008-06-23 14:45:13 -0700 |
commit | 62d66caeba786f01f6159c980fda79606afe4c61 (patch) | |
tree | 89a987bbc47ee133a8dc532bcff446ad327f31ff /src/mesa/drivers/dri/i915/intel_tris.h | |
parent | 0da9bc6a69fbd287f2e87ca9f868cb4ccc47735a (diff) |
i915: Convert to using VBs instead of inline prims.
Diffstat (limited to 'src/mesa/drivers/dri/i915/intel_tris.h')
-rw-r--r-- | src/mesa/drivers/dri/i915/intel_tris.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/mesa/drivers/dri/i915/intel_tris.h b/src/mesa/drivers/dri/i915/intel_tris.h index 021e5c6450..6b38cd6fbd 100644 --- a/src/mesa/drivers/dri/i915/intel_tris.h +++ b/src/mesa/drivers/dri/i915/intel_tris.h @@ -30,7 +30,9 @@ #include "mtypes.h" - +#define INTEL_VB_SIZE (8 * 1024) +/** 3 dwords of state_immediate and 2 of 3dprim, in intel_flush_prim */ +#define INTEL_PRIM_EMIT_SIZE (5 * 4) #define _INTEL_NEW_RENDERSTATE (_DD_NEW_LINE_STIPPLE | \ _DD_NEW_TRI_UNFILLED | \ @@ -44,11 +46,8 @@ extern void intelInitTriFuncs(GLcontext * ctx); extern void intelChooseRenderState(GLcontext * ctx); -extern void intelStartInlinePrimitive(struct intel_context *intel, - GLuint prim, GLuint flags); -extern void intelWrapInlinePrimitive(struct intel_context *intel); - -GLuint *intelExtendInlinePrimitive(struct intel_context *intel, - GLuint dwords); +void intel_set_prim(struct intel_context *intel, uint32_t prim); +GLuint *intel_get_prim_space(struct intel_context *intel, unsigned int count); +void intel_flush_prim(struct intel_context *intel); #endif |