tgsi: fix some off-by-one errors in shader length, instruction length
authorBrian Paul <brianp@vmware.com>
Mon, 7 Dec 2009 21:12:28 +0000 (14:12 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 8 Dec 2009 15:14:14 +0000 (08:14 -0700)
commitbc7567d9665924650c43c661d07ae9a922554bee
tree941a455ad065db88568ba2e98d479e31799009d6
parent629a648b059d8a2653b6a9cdf7f460533de0e1da
tgsi: fix some off-by-one errors in shader length, instruction length

The ureg and/or tgsi-simplification work introduced some inconsistencies
between the ureg and traditional TGSI construction code.

Now the tgsi_instruction::NrTokens field is consistant and the
tgsi_header::BodySize field isn't off by one.

Fixes bug 25455.
src/gallium/auxiliary/tgsi/tgsi_build.c
src/gallium/auxiliary/tgsi/tgsi_parse.c
src/gallium/auxiliary/tgsi/tgsi_ureg.c