From: Eric Anholt Date: Tue, 20 Jul 2010 00:02:52 +0000 (-0700) Subject: i965: Clean up message register setup in emit_vertex_write(). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e179fa9a0a0fb3bfd8f4cec998a886dc06f75d0a;p=mesa.git i965: Clean up message register setup in emit_vertex_write(). --- 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; }