diff options
author | Eric Anholt <[email protected]> | 2010-07-19 17:02:52 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2010-07-19 19:29:03 -0700 |
commit | e179fa9a0a0fb3bfd8f4cec998a886dc06f75d0a (patch) | |
tree | 5f434d7d7543628da16527607232585b3a6c3155 /src | |
parent | 09788ce10e354b3af6139c04a13b38df18632b13 (diff) |
i965: Clean up message register setup in emit_vertex_write().
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vs_emit.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vs_emit.c b/src/mesa/drivers/dri/i965/brw_vs_emit.c index 6f95918754d..5d22d548f3e 100644 --- a/src/mesa/drivers/dri/i965/brw_vs_emit.c +++ b/src/mesa/drivers/dri/i965/brw_vs_emit.c @@ -1377,8 +1377,8 @@ static void emit_vertex_write( struct brw_vs_compile *c) * m3 is the first vertex element data we fill, which is the vertex * position. */ - brw_MOV(p, offset(m0, 2), pos); - brw_MOV(p, offset(m0, 3), pos); + brw_MOV(p, brw_message_reg(2), pos); + brw_MOV(p, brw_message_reg(3), pos); len_vertex_header = 2; } else if (intel->gen == 5) { /* There are 20 DWs (D0-D19) in VUE header on Ironlake: @@ -1389,9 +1389,9 @@ static void emit_vertex_write( struct brw_vs_compile *c) * m6 is a pad so that the vertex element data is aligned * m7 is the first vertex data we fill, which is the vertex position. */ - brw_MOV(p, offset(m0, 2), ndc); - brw_MOV(p, offset(m0, 3), pos); - brw_MOV(p, offset(m0, 7), pos); + brw_MOV(p, brw_message_reg(2), ndc); + brw_MOV(p, brw_message_reg(3), pos); + brw_MOV(p, brw_message_reg(7), pos); len_vertex_header = 6; } else { /* There are 8 dwords in VUE header pre-Ironlake: @@ -1401,8 +1401,8 @@ static void emit_vertex_write( struct brw_vs_compile *c) * dword 8-11 (m3) is the first vertex data, which we always have be the * vertex position. */ - brw_MOV(p, offset(m0, 2), ndc); - brw_MOV(p, offset(m0, 3), pos); + brw_MOV(p, brw_message_reg(2), ndc); + brw_MOV(p, brw_message_reg(3), pos); len_vertex_header = 2; } |