nvc0: don't omit highest bit of branch target

Fixes negative relative branch offsets.
This commit is contained in:
Christoph Bumiller 2011-01-21 18:40:41 +01:00
parent 419ff10b0e
commit 005d186d66

View file

@ -236,7 +236,7 @@ emit_flow(struct nv_pc *pc, struct nv_instruction *i, uint8_t op)
*/
pc->emit[0] |= (pcrel & 0x3f) << 26;
pc->emit[1] |= (pcrel >> 6) & 0x1ffff;
pc->emit[1] |= (pcrel >> 6) & 0x3ffff;
}
}