draw: Fix draw_variant_output::format's type.
authorJosé Fonseca <jfonseca@vmware.com>
Sat, 12 Mar 2011 20:52:13 +0000 (20:52 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Sun, 13 Mar 2011 18:56:07 +0000 (18:56 +0000)
src/gallium/auxiliary/draw/draw_vs.h
src/gallium/auxiliary/draw/draw_vs_aos_io.c

index bfb72d50efab2e0f3fa0e197533d4cf6cb382d13..e6d187e97742bfe0ee8d18f6c3bd58b98e3cbb33 100644 (file)
@@ -33,6 +33,7 @@
 
 #include "draw_context.h"
 #include "draw_private.h"
+#include "draw_vertex.h"
 
 
 struct draw_context;
@@ -48,7 +49,7 @@ struct draw_variant_input
 
 struct draw_variant_output
 {
-   enum pipe_format format;     /* output format */
+   enum attrib_emit format;     /* output format */
    unsigned vs_output:8;        /* which vertex shader output is this? */
    unsigned offset:24;          /* offset into output vertex */
 };
index 8f8bbe7cb88265c46e7be26786085856cce1d86b..f1dd4487732c8f79bf2e42514832354e993da6c4 100644 (file)
@@ -384,7 +384,7 @@ static void emit_store_R8G8B8A8_UNORM( struct aos_compilation *cp,
 static boolean emit_output( struct aos_compilation *cp,
                             struct x86_reg ptr,
                             struct x86_reg dataXMM, 
-                            unsigned format )
+                            enum attrib_emit format )
 {
    switch (format) {
    case EMIT_1F:
@@ -422,7 +422,7 @@ boolean aos_emit_outputs( struct aos_compilation *cp )
    unsigned i;
    
    for (i = 0; i < cp->vaos->base.key.nr_outputs; i++) {
-      unsigned format = cp->vaos->base.key.element[i].out.format;
+      enum attrib_emit format = cp->vaos->base.key.element[i].out.format;
       unsigned offset = cp->vaos->base.key.element[i].out.offset;
       unsigned vs_output = cp->vaos->base.key.element[i].out.vs_output;