Widen num_components to handle vec4 correctly.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 25 Mar 2010 18:22:42 +0000 (11:22 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 25 Mar 2010 18:22:42 +0000 (11:22 -0700)
ir.h

diff --git a/ir.h b/ir.h
index b0c2f14..530c732 100644 (file)
--- a/ir.h
+++ b/ir.h
@@ -379,7 +379,7 @@ struct ir_swizzle_mask {
    /**
     * Number of components in the swizzle.
     */
-   unsigned num_components:2;
+   unsigned num_components:3;
 
    /**
     * Does the swizzle contain duplicate components?