diff options
author | Dave Airlie <[email protected]> | 2016-04-26 10:45:00 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2016-04-26 13:05:32 +1000 |
commit | e3e6859381df15fe17a4bd2b93906f69a3657dd4 (patch) | |
tree | 2795f2332fa378874cdca44edaa439711786145b /src/gallium/auxiliary/tgsi/tgsi_exec.h | |
parent | a6aae0c24d83675ecaaf0c6d1d8f05ad9175a9fe (diff) |
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 <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/tgsi/tgsi_exec.h')
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi_exec.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_exec.h b/src/gallium/auxiliary/tgsi/tgsi_exec.h index d02a45a3ef8..5e554d584cc 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_exec.h +++ b/src/gallium/auxiliary/tgsi/tgsi_exec.h @@ -371,7 +371,7 @@ struct tgsi_exec_machine unsigned ConstsSize[PIPE_MAX_CONSTANT_BUFFERS]; const struct tgsi_token *Tokens; /**< Declarations, instructions */ - unsigned Processor; /**< PIPE_SHADER_x */ + enum pipe_shader_type ShaderType; /**< PIPE_SHADER_x */ /* GEOMETRY processor only. */ unsigned *Primitives; @@ -444,7 +444,7 @@ struct tgsi_exec_machine }; struct tgsi_exec_machine * -tgsi_exec_machine_create( void ); +tgsi_exec_machine_create(enum pipe_shader_type shader_type); void tgsi_exec_machine_destroy(struct tgsi_exec_machine *mach); |