Mesa (master): nv50: Disable unused code.

Vinson Lee vlee at kemper.freedesktop.org
Sun Aug 22 04:43:24 UTC 2010


Module: Mesa
Branch: master
Commit: 2506b32eecbaacf5609f0c4654a9f90c72ce0c81
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2506b32eecbaacf5609f0c4654a9f90c72ce0c81

Author: Vinson Lee <vlee at vmware.com>
Date:   Sat Aug 21 21:42:17 2010 -0700

nv50: Disable unused code.

Disable release_hw and emit_mov_from_pred functions as they are
currently not being used.

---

 src/gallium/drivers/nv50/nv50_program.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/nv50/nv50_program.c b/src/gallium/drivers/nv50/nv50_program.c
index 8cb1639..cec2290 100644
--- a/src/gallium/drivers/nv50/nv50_program.c
+++ b/src/gallium/drivers/nv50/nv50_program.c
@@ -306,6 +306,7 @@ alloc_temp(struct nv50_pc *pc, struct nv50_reg *dst)
 	return NULL;
 }
 
+#if 0
 /* release the hardware resource held by r */
 static void
 release_hw(struct nv50_pc *pc, struct nv50_reg *r)
@@ -321,6 +322,7 @@ release_hw(struct nv50_pc *pc, struct nv50_reg *r)
 	if (r->index == -1)
 		FREE(r);
 }
+#endif
 
 static void
 free_temp(struct nv50_pc *pc, struct nv50_reg *r)
@@ -885,6 +887,7 @@ set_half_src(struct nv50_pc *pc, struct nv50_reg *src, int lh,
 	e->inst[pos / 32] |= ((src->hw * 2) + lh) << (pos % 32);
 }
 
+#if 0
 static void
 emit_mov_from_pred(struct nv50_pc *pc, struct nv50_reg *dst, int pred)
 {
@@ -897,6 +900,7 @@ emit_mov_from_pred(struct nv50_pc *pc, struct nv50_reg *dst, int pred)
 
 	emit(pc, e);
 }
+#endif
 
 static void
 emit_mov_to_pred(struct nv50_pc *pc, int pred, struct nv50_reg *src)




More information about the mesa-commit mailing list