nv50: use emit_flop() instead of building RCP manually on interp
authorBen Skeggs <skeggsb@gmail.com>
Mon, 9 Jun 2008 03:31:42 +0000 (13:31 +1000)
committerBen Skeggs <skeggsb@gmail.com>
Sun, 29 Jun 2008 05:46:16 +0000 (15:46 +1000)
src/gallium/drivers/nv50/nv50_program.c

index 6b8ba1bdfe5a82cea04906de6d7ba90a56640221..592435585d9667d2f9fb539b69758127c29a7ed9 100644 (file)
@@ -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);