etnaviv: Use the correct LOG instruction on GC3000
authorWladimir J. van der Laan <laanwj@gmail.com>
Tue, 11 Jul 2017 13:07:09 +0000 (15:07 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Fri, 14 Jul 2017 15:15:41 +0000 (17:15 +0200)
commitbb2498a7f69790e22492fb949a1bd14b83cf19c7
tree96e2bb8057319334aed9c81a235c5f1a82df02e0
parentbccd21ee88f633efafb59d0ef8a42478f2faa90b
etnaviv: Use the correct LOG instruction on GC3000

GC3000 has a new LOG instruction, similar to the new SIN and COS instructions.

Generate the new instruction sequence when appropriate; there are
two occasions, as part of LIT and the generator for the LG2
instruction itself.

Signed-off-by: Wladimir J. van der Laan <laanwj@gmail.com>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
src/gallium/drivers/etnaviv/etnaviv_compiler.c
src/gallium/drivers/etnaviv/etnaviv_internal.h
src/gallium/drivers/etnaviv/etnaviv_screen.c