From: Ben Skeggs Date: Mon, 9 Jun 2008 03:31:42 +0000 (+1000) Subject: nv50: use emit_flop() instead of building RCP manually on interp X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=713ef6ccd2590bd866598bb6d4f646e9ec29ba78;p=mesa.git nv50: use emit_flop() instead of building RCP manually on interp --- diff --git a/src/gallium/drivers/nv50/nv50_program.c b/src/gallium/drivers/nv50/nv50_program.c index 6b8ba1bdfe5..592435585d9 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);