diff options
author | Christoph Bumiller <e0425955@student.tuwien.ac.at> | 2011-01-21 18:40:41 +0100 |
---|---|---|
committer | Christoph Bumiller <e0425955@student.tuwien.ac.at> | 2011-01-23 13:03:20 +0100 |
commit | 005d186d6634abaeef348ca89c527bd5c34d0e87 (patch) | |
tree | 5689f30868fff5777034a5b1c603b779b944f7f1 | |
parent | 419ff10b0ebdeec06bd3466beda2a9e1a9d054d6 (diff) | |
download | external_mesa3d-005d186d6634abaeef348ca89c527bd5c34d0e87.zip external_mesa3d-005d186d6634abaeef348ca89c527bd5c34d0e87.tar.gz external_mesa3d-005d186d6634abaeef348ca89c527bd5c34d0e87.tar.bz2 |
nvc0: don't omit highest bit of branch target
Fixes negative relative branch offsets.
-rw-r--r-- | src/gallium/drivers/nvc0/nvc0_pc_emit.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } } |