diff options
author | Marek Olšák <[email protected]> | 2016-04-16 14:48:34 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-04-22 01:30:39 +0200 |
commit | c9e5a7df61d92aa5525dcc825bc3c6cb3a60f96b (patch) | |
tree | a33131633a962069528e19885232f0ae57cee07a /src/gallium/state_trackers | |
parent | af249a7da9bf2621ab836d5074ef692677b11bbf (diff) |
gallium: remove helpers converting to/from TGSI_PROCESSOR_*
Acked-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r-- | src/gallium/state_trackers/nine/nine_shader.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/gallium/state_trackers/nine/nine_shader.c b/src/gallium/state_trackers/nine/nine_shader.c index dc886baba53..a539ab91f60 100644 --- a/src/gallium/state_trackers/nine/nine_shader.c +++ b/src/gallium/state_trackers/nine/nine_shader.c @@ -3254,17 +3254,6 @@ tx_dtor(struct shader_translator *tx) FREE(tx); } -static inline unsigned -tgsi_processor_from_type(unsigned shader_type) -{ - switch (shader_type) { - case PIPE_SHADER_VERTEX: return PIPE_SHADER_VERTEX; - case PIPE_SHADER_FRAGMENT: return PIPE_SHADER_FRAGMENT; - default: - return ~0; - } -} - static void shader_add_ps_fog_stage(struct shader_translator *tx, struct ureg_src src_col) { @@ -3326,7 +3315,7 @@ nine_translate_shader(struct NineDevice9 *device, struct nine_shader_info *info) { struct shader_translator *tx; HRESULT hr = D3D_OK; - const unsigned processor = tgsi_processor_from_type(info->type); + const unsigned processor = info->type; unsigned s, slot_max; unsigned max_const_f; |