summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2007-09-05 13:31:01 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2007-09-05 13:31:01 +0800
commit1a15b2169ba6cb100627eb525a20a00537cfb6f0 (patch)
tree95debf3478704faa3a832eb6bfb919c1df95f972
parent8752a20decab59de4dd5feb9672b8299126eb7eb (diff)
i965: only take non-varying attribute into account when
compiling sf_prog. fix bug#11378 (which is introduced by commit d619cceea47dc3070ebb7f7ea4f8b6b31a672d38)
-rw-r--r--src/mesa/drivers/dri/i965/brw_sf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_sf.c b/src/mesa/drivers/dri/i965/brw_sf.c
index 73232b3c7c..a655b010fd 100644
--- a/src/mesa/drivers/dri/i965/brw_sf.c
+++ b/src/mesa/drivers/dri/i965/brw_sf.c
@@ -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 )