summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/rtasm
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-10-09 19:54:46 -0600
committerBrian Paul <[email protected]>2008-10-09 19:54:46 -0600
commit7ac1fc77661faf0897507fef0437fe69d0ba53ac (patch)
tree1e65466d9fe050b692c0c815fb8c14df06725c86 /src/gallium/auxiliary/rtasm
parent02aea66b1ad7703f9c46e939eaa2d7aa91073c39 (diff)
cell: fix incorrect bitmask in spe_load_uint()
Diffstat (limited to 'src/gallium/auxiliary/rtasm')
-rw-r--r--src/gallium/auxiliary/rtasm/rtasm_ppc_spe.c2
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 9274bc5e3cd..cc35f0ba5b0 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)) {