summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/draw/draw_gs.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2016-04-26 10:45:00 +1000
committerDave Airlie <airlied@redhat.com>2016-04-26 13:05:32 +1000
commite3e6859381df15fe17a4bd2b93906f69a3657dd4 (patch)
tree2795f2332fa378874cdca44edaa439711786145b /src/gallium/auxiliary/draw/draw_gs.c
parenta6aae0c24d83675ecaaf0c6d1d8f05ad9175a9fe (diff)
downloadexternal_mesa3d-e3e6859381df15fe17a4bd2b93906f69a3657dd4.tar.gz
external_mesa3d-e3e6859381df15fe17a4bd2b93906f69a3657dd4.tar.bz2
external_mesa3d-e3e6859381df15fe17a4bd2b93906f69a3657dd4.zip
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>
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_gs.c')
-rw-r--r--src/gallium/auxiliary/draw/draw_gs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/draw/draw_gs.c b/src/gallium/auxiliary/draw/draw_gs.c
index ef217fa5ce..ca03238885 100644
--- a/src/gallium/auxiliary/draw/draw_gs.c
+++ b/src/gallium/auxiliary/draw/draw_gs.c
@@ -692,7 +692,7 @@ boolean
draw_gs_init( struct draw_context *draw )
{
if (!draw->llvm) {
- draw->gs.tgsi.machine = tgsi_exec_machine_create();
+ draw->gs.tgsi.machine = tgsi_exec_machine_create(PIPE_SHADER_GEOMETRY);
if (!draw->gs.tgsi.machine)
return FALSE;