gallivm/draw/swr: make the gs_iface not depend on tgsi.
authorDave Airlie <airlied@redhat.com>
Tue, 30 Jul 2019 22:23:29 +0000 (08:23 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 14 Oct 2019 18:43:30 +0000 (04:43 +1000)
commitc2efc7c6378ea5cc49c801153129c0f0cc2f3b23
tree3d1dd9097636fc5298a4bda1615f038974b8ee4e
parentac7af7c50057f4b72ec058fd08b6f40db595e489
gallivm/draw/swr: make the gs_iface not depend on tgsi.

This gs_iface doesn't seem to require a dependence on the tgsi
context, except for the swr end prim code.

This refactors the API to include all the info that the swr
code needs in the interface rather than having to dig it out of
the struct inheritance.

This is a precursor to adding NIR support to llvmpipe.

Reviewed-by: Jan Zielinski <jan.zielinski@intel.com>
src/gallium/auxiliary/draw/draw_llvm.c
src/gallium/auxiliary/gallivm/lp_bld_tgsi.h
src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
src/gallium/drivers/swr/swr_shader.cpp