summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_ureg.c3
-rw-r--r--src/gallium/auxiliary/util/u_inlines.h22
2 files changed, 1 insertions, 24 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_ureg.c b/src/gallium/auxiliary/tgsi/tgsi_ureg.c
index 17b39e20ed8..7ed9bd6c608 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_ureg.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_ureg.c
@@ -2090,8 +2090,7 @@ ureg_create_with_screen(unsigned processor, struct pipe_screen *screen)
ureg->processor = processor;
ureg->supports_any_inout_decl_range =
screen &&
- screen->get_shader_param(screen,
- util_pipe_shader_from_tgsi_processor(processor),
+ screen->get_shader_param(screen, processor,
PIPE_SHADER_CAP_TGSI_ANY_INOUT_DECL_RANGE) != 0;
ureg->next_shader_processor = -1;
diff --git a/src/gallium/auxiliary/util/u_inlines.h b/src/gallium/auxiliary/util/u_inlines.h
index eedd32e9e47..07c058abfba 100644
--- a/src/gallium/auxiliary/util/u_inlines.h
+++ b/src/gallium/auxiliary/util/u_inlines.h
@@ -650,28 +650,6 @@ util_max_layer(const struct pipe_resource *r, unsigned level)
}
}
-static inline unsigned
-util_pipe_shader_from_tgsi_processor(unsigned processor)
-{
- switch (processor) {
- case PIPE_SHADER_VERTEX:
- return PIPE_SHADER_VERTEX;
- case PIPE_SHADER_TESS_CTRL:
- return PIPE_SHADER_TESS_CTRL;
- case PIPE_SHADER_TESS_EVAL:
- return PIPE_SHADER_TESS_EVAL;
- case PIPE_SHADER_GEOMETRY:
- return PIPE_SHADER_GEOMETRY;
- case PIPE_SHADER_FRAGMENT:
- return PIPE_SHADER_FRAGMENT;
- case PIPE_SHADER_COMPUTE:
- return PIPE_SHADER_COMPUTE;
- default:
- assert(0);
- return PIPE_SHADER_VERTEX;
- }
-}
-
#ifdef __cplusplus
}
#endif