i965: only take non-varying attribute into account when
authorXiang, Haihao <haihao.xiang@intel.com>
Wed, 5 Sep 2007 05:31:01 +0000 (13:31 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Wed, 5 Sep 2007 05:31:01 +0000 (13:31 +0800)
compiling sf_prog. fix bug#11378 (which is introduced by
commit d619cceea47dc3070ebb7f7ea4f8b6b31a672d38)

src/mesa/drivers/dri/i965/brw_sf.c

index 73232b3c7c86419c8da668a5298d6dfade28cbd5..a655b010fdb741f9070246fa5c9ab1e03df2395e 100644 (file)
@@ -43,7 +43,7 @@
 #include "brw_sf.h"
 #include "brw_state.h"
 
-#define DO_SETUP_BITS ((1<<FRAG_ATTRIB_MAX)-1)
+#define DO_SETUP_BITS ((1<<(FRAG_ATTRIB_MAX - MAX_VARYING))-1)
 
 static void compile_sf_prog( struct brw_context *brw,
                             struct brw_sf_prog_key *key )