lima/ppir: fix branch codegen register encode
authorErico Nunes <nunes.erico@gmail.com>
Mon, 22 Jul 2019 23:04:30 +0000 (01:04 +0200)
committerErico Nunes <nunes.erico@gmail.com>
Tue, 23 Jul 2019 08:49:19 +0000 (08:49 +0000)
commit65e6c42d27e1de154879ca59eccf1a7be2a97ae0
tree9b060aaecd46ad691239222e3c9e9316cac2cf0c
parenta255b495932deccec48d759aba3abf1837c7a4b7
lima/ppir: fix branch codegen register encode

The branch instruction has 6 bits per register operand which allows it
to specify a component in the register.
Fix codegen so that it outputs the right component, otherwise it always
outputs the x component.

Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com>
Reviewed-by: Qiang Yu <yuq825@gmail.com>
src/gallium/drivers/lima/ir/pp/codegen.c