diff options
author | Luc Verhaegen <libv@skynet.be> | 2010-03-14 06:20:29 +0100 |
---|---|---|
committer | Luc Verhaegen <libv@skynet.be> | 2010-03-14 06:20:29 +0100 |
commit | 6b263d1e2c599ddcc0ce4c84425dbc1ac8de020c (patch) | |
tree | 9280bc7c79dc7326d5f5172d978a4aa0ed58ed99 /i965/brw_wm_pass0.c | |
parent | 4cfe98db595fd3876e252bd23ed48bf82836f795 (diff) |
Import i915 and i965 dri drivers from mesa 7.7.0.7.7.0
Diffstat (limited to 'i965/brw_wm_pass0.c')
-rw-r--r-- | i965/brw_wm_pass0.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/i965/brw_wm_pass0.c b/i965/brw_wm_pass0.c index 6279258..ff4c082 100644 --- a/i965/brw_wm_pass0.c +++ b/i965/brw_wm_pass0.c @@ -42,12 +42,14 @@ static struct brw_wm_ref *get_ref( struct brw_wm_compile *c ) { assert(c->nr_refs < BRW_WM_MAX_REF); + memset(&c->refs[c->nr_refs], 0, sizeof(*c->refs)); return &c->refs[c->nr_refs++]; } static struct brw_wm_value *get_value( struct brw_wm_compile *c) { assert(c->nr_refs < BRW_WM_MAX_VREG); + memset(&c->vreg[c->nr_vreg], 0, sizeof(*c->vreg)); return &c->vreg[c->nr_vreg++]; } @@ -55,6 +57,7 @@ static struct brw_wm_value *get_value( struct brw_wm_compile *c) static struct brw_wm_instruction *get_instruction( struct brw_wm_compile *c ) { assert(c->nr_insns < BRW_WM_MAX_INSN); + memset(&c->instruction[c->nr_insns], 0, sizeof(*c->instruction)); return &c->instruction[c->nr_insns++]; } @@ -322,8 +325,8 @@ translate_insn(struct brw_wm_compile *c, out->tex_unit = inst->TexSrcUnit; out->tex_idx = inst->TexSrcTarget; out->tex_shadow = inst->TexShadow; - out->eot = inst->Aux & 1; - out->target = inst->Aux >> 1; + out->eot = inst->Aux & INST_AUX_EOT; + out->target = INST_AUX_GET_TARGET(inst->Aux); /* Args: */ |