etnaviv: pass a preallocated variant to compiler
authorChristian Gmeiner <christian.gmeiner@gmail.com>
Sun, 19 Mar 2017 15:32:40 +0000 (16:32 +0100)
committerChristian Gmeiner <christian.gmeiner@gmail.com>
Wed, 5 Apr 2017 17:58:07 +0000 (19:58 +0200)
commit9da54fdcb5b591a7d6c96871e92f8b183c0a5130
tree0abb110cb69f3a9bed76a647ced1699877454c3b
parentffd47623102a7c873684c5024d87747d280d3d5d
etnaviv: pass a preallocated variant to compiler

In the long run the compiler needs to know the specifc variant
'key' in order to compile appropriate assembly. With this commit
the variant knows its shader and we are able pass the preallocated
variant into etna_compile_shader(..). This saves us from passing
extra ptrs everywhere.

Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
src/gallium/drivers/etnaviv/etnaviv_compiler.c
src/gallium/drivers/etnaviv/etnaviv_compiler.h
src/gallium/drivers/etnaviv/etnaviv_compiler_cmdline.c
src/gallium/drivers/etnaviv/etnaviv_shader.c