summaryrefslogtreecommitdiff
path: root/src/gallium
diff options
context:
space:
mode:
authorBen Skeggs <skeggsb@gmail.com>2008-06-09 13:31:42 +1000
committerBen Skeggs <skeggsb@gmail.com>2008-06-29 15:46:16 +1000
commit713ef6ccd2590bd866598bb6d4f646e9ec29ba78 (patch)
tree81fb81b3de6205e6b90c296d672f365525da6802 /src/gallium
parentb5bbf09c42a9d563984fad875ced5c4814033a3d (diff)
nv50: use emit_flop() instead of building RCP manually on interp
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/nv50/nv50_program.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/gallium/drivers/nv50/nv50_program.c b/src/gallium/drivers/nv50/nv50_program.c
index 6b8ba1bdfe..592435585d 100644
--- a/src/gallium/drivers/nv50/nv50_program.c
+++ b/src/gallium/drivers/nv50/nv50_program.c
@@ -1176,12 +1176,7 @@ nv50_program_tx_prep(struct nv50_pc *pc)
emit_interp(pc, iv, iv, iv, FALSE);
tmp = alloc_temp(pc, NULL);
- {
- unsigned inst[2] = { 0, 0 };
- inst[0] = 0x90000000;
- inst[0] |= (tmp->hw << 2);
- emit(pc, inst);
- }
+ emit_flop(pc, 0, tmp, iv);
emit_interp(pc, &a[0], &a[0], tmp, TRUE);
emit_interp(pc, &a[1], &a[1], tmp, TRUE);
emit_interp(pc, &a[2], &a[2], tmp, TRUE);