diff options
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_gs_emit.c | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_gs_emit.c b/src/mesa/drivers/dri/i965/brw_gs_emit.c index 47b99c1325b..e9875cdbf11 100644 --- a/src/mesa/drivers/dri/i965/brw_gs_emit.c +++ b/src/mesa/drivers/dri/i965/brw_gs_emit.c @@ -76,11 +76,11 @@ static void brw_gs_emit_vue(struct brw_gs_compile *c, struct brw_reg temp; if (intel->gen < 6) - temp = c->reg.R0; + temp = c->reg.R0; else { - temp = c->reg.temp; - brw_MOV(p, retype(temp, BRW_REGISTER_TYPE_UD), - retype(c->reg.R0, BRW_REGISTER_TYPE_UD)); + temp = c->reg.temp; + brw_MOV(p, retype(temp, BRW_REGISTER_TYPE_UD), + retype(c->reg.R0, BRW_REGISTER_TYPE_UD)); } /* Overwrite PrimType and PrimStart in the message header, for @@ -117,32 +117,32 @@ static void brw_gs_emit_vue(struct brw_gs_compile *c, static void brw_gs_ff_sync(struct brw_gs_compile *c, int num_prim) { - struct brw_compile *p = &c->func; - struct intel_context *intel = &c->func.brw->intel; - - if (intel->gen < 6) { - brw_MOV(p, get_element_ud(c->reg.R0, 1), brw_imm_ud(num_prim)); - brw_ff_sync(p, - c->reg.R0, - 0, - c->reg.R0, - 1, /* allocate */ - 1, /* response length */ - 0 /* eot */); - } else { - brw_MOV(p, retype(c->reg.temp, BRW_REGISTER_TYPE_UD), - retype(c->reg.R0, BRW_REGISTER_TYPE_UD)); - brw_MOV(p, get_element_ud(c->reg.temp, 1), brw_imm_ud(num_prim)); - brw_ff_sync(p, - c->reg.temp, - 0, - c->reg.temp, - 1, /* allocate */ - 1, /* response length */ - 0 /* eot */); - brw_MOV(p, get_element_ud(c->reg.R0, 0), - get_element_ud(c->reg.temp, 0)); - } + struct brw_compile *p = &c->func; + struct intel_context *intel = &c->func.brw->intel; + + if (intel->gen < 6) { + brw_MOV(p, get_element_ud(c->reg.R0, 1), brw_imm_ud(num_prim)); + brw_ff_sync(p, + c->reg.R0, + 0, + c->reg.R0, + 1, /* allocate */ + 1, /* response length */ + 0 /* eot */); + } else { + brw_MOV(p, retype(c->reg.temp, BRW_REGISTER_TYPE_UD), + retype(c->reg.R0, BRW_REGISTER_TYPE_UD)); + brw_MOV(p, get_element_ud(c->reg.temp, 1), brw_imm_ud(num_prim)); + brw_ff_sync(p, + c->reg.temp, + 0, + c->reg.temp, + 1, /* allocate */ + 1, /* response length */ + 0 /* eot */); + brw_MOV(p, get_element_ud(c->reg.R0, 0), + get_element_ud(c->reg.temp, 0)); + } } @@ -156,7 +156,7 @@ void brw_gs_quads( struct brw_gs_compile *c, struct brw_gs_prog_key *key ) * is the PV for quads, but vertex 0 for polygons: */ if (intel->needs_ff_sync) - brw_gs_ff_sync(c, 1); + brw_gs_ff_sync(c, 1); if (key->pv_first) { brw_gs_emit_vue(c, c->reg.vertex[0], 0, ((_3DPRIM_POLYGON << 2) | R02_PRIM_START)); brw_gs_emit_vue(c, c->reg.vertex[1], 0, (_3DPRIM_POLYGON << 2)); @@ -178,7 +178,7 @@ void brw_gs_quad_strip( struct brw_gs_compile *c, struct brw_gs_prog_key *key ) brw_gs_alloc_regs(c, 4); if (intel->needs_ff_sync) - brw_gs_ff_sync(c, 1); + brw_gs_ff_sync(c, 1); if (key->pv_first) { brw_gs_emit_vue(c, c->reg.vertex[0], 0, ((_3DPRIM_POLYGON << 2) | R02_PRIM_START)); brw_gs_emit_vue(c, c->reg.vertex[1], 0, (_3DPRIM_POLYGON << 2)); @@ -200,7 +200,7 @@ void brw_gs_lines( struct brw_gs_compile *c ) brw_gs_alloc_regs(c, 2); if (intel->needs_ff_sync) - brw_gs_ff_sync(c, 1); + brw_gs_ff_sync(c, 1); brw_gs_emit_vue(c, c->reg.vertex[0], 0, ((_3DPRIM_LINESTRIP << 2) | R02_PRIM_START)); brw_gs_emit_vue(c, c->reg.vertex[1], 1, ((_3DPRIM_LINESTRIP << 2) | R02_PRIM_END)); } |