From: Christoph Bumiller Date: Fri, 21 Jan 2011 17:40:41 +0000 (+0100) Subject: nvc0: don't omit highest bit of branch target X-Git-Tag: mesa-7.11-rc1~2556 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=005d186d6634abaeef348ca89c527bd5c34d0e87;p=platform%2Fupstream%2Fmesa.git nvc0: don't omit highest bit of branch target Fixes negative relative branch offsets. --- diff --git a/src/gallium/drivers/nvc0/nvc0_pc_emit.c b/src/gallium/drivers/nvc0/nvc0_pc_emit.c index e3097c9..e4b243b 100644 --- a/src/gallium/drivers/nvc0/nvc0_pc_emit.c +++ b/src/gallium/drivers/nvc0/nvc0_pc_emit.c @@ -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; } }