summaryrefslogtreecommitdiff
path: root/i965/brw_wm_pass2.c
diff options
context:
space:
mode:
authorLuc Verhaegen <libv@skynet.be>2010-03-14 06:20:29 +0100
committerLuc Verhaegen <libv@skynet.be>2010-03-14 06:20:29 +0100
commit6b263d1e2c599ddcc0ce4c84425dbc1ac8de020c (patch)
tree9280bc7c79dc7326d5f5172d978a4aa0ed58ed99 /i965/brw_wm_pass2.c
parent4cfe98db595fd3876e252bd23ed48bf82836f795 (diff)
Import i915 and i965 dri drivers from mesa 7.7.0.7.7.0
Diffstat (limited to 'i965/brw_wm_pass2.c')
-rw-r--r--i965/brw_wm_pass2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/i965/brw_wm_pass2.c b/i965/brw_wm_pass2.c
index 6faea01..31303fe 100644
--- a/i965/brw_wm_pass2.c
+++ b/i965/brw_wm_pass2.c
@@ -82,8 +82,8 @@ static void init_registers( struct brw_wm_compile *c )
for (j = 0; j < c->nr_creg; j++)
prealloc_reg(c, &c->creg[j], i++);
- for (j = 0; j < FRAG_ATTRIB_MAX; j++) {
- if (c->key.vp_outputs_written & (1<<j)) {
+ for (j = 0; j < VERT_RESULT_MAX; j++) {
+ if (c->key.vp_outputs_written & BITFIELD64_BIT(j)) {
int fp_index;
if (j >= VERT_RESULT_VAR0)