Mesa (gallium-0.2): cell: fix assertions in spe_lqd(), spe_stqd()

Brian Paul brianp at kemper.freedesktop.org
Fri Oct 10 20:58:21 UTC 2008


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

Author: Brian Paul <brian.paul at tungstengraphics.com>
Date:   Fri Oct 10 14:35:56 2008 -0600

cell: fix assertions in spe_lqd(), spe_stqd()

---

 src/gallium/auxiliary/rtasm/rtasm_ppc_spe.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/auxiliary/rtasm/rtasm_ppc_spe.c b/src/gallium/auxiliary/rtasm/rtasm_ppc_spe.c
index 9bf3b9b..5b0f6bd 100644
--- a/src/gallium/auxiliary/rtasm/rtasm_ppc_spe.c
+++ b/src/gallium/auxiliary/rtasm/rtasm_ppc_spe.c
@@ -559,7 +559,7 @@ void spe_lqd(struct spe_function *p, unsigned rT, unsigned rA, int offset)
    const boolean pSave = p->print;
 
    p->print = FALSE;
-   assert(offset % 4 == 0);
+   assert(offset % 16 == 0);
    emit_RI10(p, 0x034, rT, rA, offset >> 4, "spe_lqd");
    p->print = pSave;
 
@@ -579,7 +579,7 @@ void spe_stqd(struct spe_function *p, unsigned rT, unsigned rA, int offset)
    const boolean pSave = p->print;
 
    p->print = FALSE;
-   assert(offset % 4 == 0);
+   assert(offset % 16 == 0);
    emit_RI10(p, 0x024, rT, rA, offset >> 4, "spe_stqd");
    p->print = pSave;
 




More information about the mesa-commit mailing list