Mesa (gallium-0.2): cell: fix incorrect bitmask in spe_load_uint()
Brian Paul
brianp at kemper.freedesktop.org
Fri Oct 10 01:55:07 UTC 2008
Module: Mesa
Branch: gallium-0.2
Commit: 7ac1fc77661faf0897507fef0437fe69d0ba53ac
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7ac1fc77661faf0897507fef0437fe69d0ba53ac
Author: Brian Paul <brian.paul at tungstengraphics.com>
Date: Thu Oct 9 19:54:46 2008 -0600
cell: fix incorrect bitmask in spe_load_uint()
---
src/gallium/auxiliary/rtasm/rtasm_ppc_spe.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/gallium/auxiliary/rtasm/rtasm_ppc_spe.c b/src/gallium/auxiliary/rtasm/rtasm_ppc_spe.c
index 9274bc5..cc35f0b 100644
--- a/src/gallium/auxiliary/rtasm/rtasm_ppc_spe.c
+++ b/src/gallium/auxiliary/rtasm/rtasm_ppc_spe.c
@@ -727,7 +727,7 @@ void spe_load_uint(struct spe_function *p, unsigned rT, unsigned int ui)
* Bytes Immediate (fsmbi) to load the value in a single instruction.
* Otherwise, in the general case, we have to use ilhu followed by iohl.
*/
- if ((ui & 0xfffc0000) == ui) {
+ if ((ui & 0x3ffff) == ui) {
spe_ila(p, rT, ui);
}
else if ((ui >> 16) == (ui & 0xffff)) {
More information about the mesa-commit
mailing list