Mesa (gallium-0.2): gallium: added ppc_vzero()

Brian Paul brianp at kemper.freedesktop.org
Wed Oct 22 23:31:39 UTC 2008


Module: Mesa
Branch: gallium-0.2
Commit: 3026616c48487a7561d8545c08950539f0ad51d1
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3026616c48487a7561d8545c08950539f0ad51d1

Author: Brian Paul <brian.paul at tungstengraphics.com>
Date:   Wed Oct 22 17:17:11 2008 -0600

gallium: added ppc_vzero()

---

 src/gallium/auxiliary/rtasm/rtasm_ppc.c |    8 ++++++++
 src/gallium/auxiliary/rtasm/rtasm_ppc.h |    5 +++++
 2 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/src/gallium/auxiliary/rtasm/rtasm_ppc.c b/src/gallium/auxiliary/rtasm/rtasm_ppc.c
index 65df676..51d9b53 100644
--- a/src/gallium/auxiliary/rtasm/rtasm_ppc.c
+++ b/src/gallium/auxiliary/rtasm/rtasm_ppc.c
@@ -669,6 +669,14 @@ ppc_vecmove(struct ppc_function *p, uint vD, uint vA)
    ppc_vor(p, vD, vA, vA);
 }
 
+/** Set vector register to {0,0,0,0} */
+void
+ppc_vzero(struct ppc_function *p, uint vr)
+{
+   ppc_vxor(p, vr, vr, vr);
+}
+
+
 
 
 /**
diff --git a/src/gallium/auxiliary/rtasm/rtasm_ppc.h b/src/gallium/auxiliary/rtasm/rtasm_ppc.h
index 9f1e3fc..f194d3b 100644
--- a/src/gallium/auxiliary/rtasm/rtasm_ppc.h
+++ b/src/gallium/auxiliary/rtasm/rtasm_ppc.h
@@ -193,6 +193,11 @@ ppc_vxor(struct ppc_function *p, uint vD, uint vA, uint vB);
 extern void
 ppc_vecmove(struct ppc_function *p, uint vD, uint vA);
 
+/** Set vector register to {0,0,0,0} */
+extern void
+ppc_vzero(struct ppc_function *p, uint vr);
+
+
 
 /**
  ** Vector shuffle / select / splat / etc




More information about the mesa-commit mailing list