From: Kenneth Graunke Date: Sun, 7 Oct 2018 05:54:38 +0000 (-0700) Subject: iris: inline stage_from_pipe to avoid unused warnings X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0fdcb208034ba88ec38460519f5b13d58fbfd57f;p=mesa.git iris: inline stage_from_pipe to avoid unused warnings --- diff --git a/src/gallium/drivers/iris/iris_pipe.h b/src/gallium/drivers/iris/iris_pipe.h index 1cb0a76af9a..dac81009168 100644 --- a/src/gallium/drivers/iris/iris_pipe.h +++ b/src/gallium/drivers/iris/iris_pipe.h @@ -26,7 +26,7 @@ #include "pipe/p_defines.h" #include "compiler/shader_enums.h" -static gl_shader_stage +static inline gl_shader_stage stage_from_pipe(enum pipe_shader_type pstage) { static const gl_shader_stage stages[PIPE_SHADER_TYPES] = {