Displaying 1 result from an estimated 1 matches for "nv40_primit".
2010 Jan 18
1
[PATCH 1/2] nv30-nv40: Rewrite primitive splitting and emission
...m/drivers/nv40/nv40_vbo.c
index a777898..1182fc4 100644
--- a/src/gallium/drivers/nv40/nv40_vbo.c
+++ b/src/gallium/drivers/nv40/nv40_vbo.c
@@ -164,6 +164,121 @@ nv40_vbo_static_attrib(struct nv40_context *nv40, struct nouveau_stateobj *so,
return TRUE;
}
+// TODO: share this with NV30
+struct nv40_primitive
+{
+ struct nv40_context *nv40;
+ unsigned mode;
+ unsigned start;
+ unsigned end;
+ unsigned vpp;
+ unsigned flags;
+ unsigned startv;
+ int chunk;
+};
+
+static inline void
+nv40_primitive_init(struct nv40_primitive* prim, struct nv40_context *nv40,
+ unsigned mode, unsigned start, unsigned...