Mesa (master): i965: Clean up message register setup in emit_vertex_write() .
Eric Anholt
anholt at kemper.freedesktop.org
Tue Jul 20 02:33:59 UTC 2010
Module: Mesa
Branch: master
Commit: e179fa9a0a0fb3bfd8f4cec998a886dc06f75d0a
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e179fa9a0a0fb3bfd8f4cec998a886dc06f75d0a
Author: Eric Anholt <eric at anholt.net>
Date: Mon Jul 19 17:02:52 2010 -0700
i965: Clean up message register setup in emit_vertex_write().
---
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 6f95918..5d22d54 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;
}
More information about the mesa-commit
mailing list