tgsi: pass a shader type to the machine create and clean up.
authorDave Airlie <airlied@redhat.com>
Tue, 26 Apr 2016 00:45:00 +0000 (10:45 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 26 Apr 2016 03:05:32 +0000 (13:05 +1000)
commite3e6859381df15fe17a4bd2b93906f69a3657dd4
tree2795f2332fa378874cdca44edaa439711786145b
parenta6aae0c24d83675ecaaf0c6d1d8f05ad9175a9fe
tgsi: pass a shader type to the machine create and clean up.

There was definitely bugs here mixing up the PIPE_ and TGSI_ defines,
hopefully they didn't cause any problems, since mostly it was special
cases for GEOMETRY.

This clarifies at shader machine create what type of shader this
machine will execute. This is needed also for compute shaders where
we don't want to allocate inputs/outputs.

Reviewed-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/auxiliary/draw/draw_gs.c
src/gallium/auxiliary/draw/draw_vs.c
src/gallium/auxiliary/tgsi/tgsi_exec.c
src/gallium/auxiliary/tgsi/tgsi_exec.h
src/gallium/drivers/softpipe/sp_context.c