summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/draw/draw_context.c
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2008-04-17 14:20:00 +0100
committerKeith Whitwell <keith@tungstengraphics.com>2008-04-17 14:23:13 +0100
commit280bcff1fa200b790d8712946a4ffbaa47a67433 (patch)
treee9d8ebf9e24e8bee0687a3ca283dcff10787008f /src/gallium/auxiliary/draw/draw_context.c
parent938ec19210c5b4e19dcb2b606c9ade415f2c1f84 (diff)
draw: add vertex shader run_linear function
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_context.c')
-rw-r--r--src/gallium/auxiliary/draw/draw_context.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/draw/draw_context.c b/src/gallium/auxiliary/draw/draw_context.c
index cdcbfdc323..9b2dcc0b57 100644
--- a/src/gallium/auxiliary/draw/draw_context.c
+++ b/src/gallium/auxiliary/draw/draw_context.c
@@ -33,8 +33,8 @@
#include "pipe/p_util.h"
#include "draw_context.h"
-#include "draw_private.h"
#include "draw_vbuf.h"
+#include "draw_vs.h"
struct draw_context *draw_create( void )
@@ -108,6 +108,8 @@ struct draw_context *draw_create( void )
draw_vertex_cache_invalidate( draw );
draw_set_mapped_element_buffer( draw, 0, NULL );
+ tgsi_exec_machine_init(&draw->machine);
+
if (!draw_pt_init( draw ))
goto fail;
@@ -460,3 +462,16 @@ boolean draw_get_edgeflag( struct draw_context *draw,
else
return 1;
}
+
+
+#if 0
+/* Crufty init function. Fix me.
+ */
+boolean draw_init_machine( struct draw_context *draw )
+{
+ ALIGN16_DECL(struct tgsi_exec_vector, inputs, PIPE_MAX_ATTRIBS);
+ ALIGN16_DECL(struct tgsi_exec_vector, outputs, PIPE_MAX_ATTRIBS);
+ machine->Inputs = ALIGN16_ASSIGN(inputs);
+ machine->Outputs = ALIGN16_ASSIGN(outputs);
+}
+#endif