iris: inline stage_from_pipe to avoid unused warnings
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 7 Oct 2018 05:54:38 +0000 (22:54 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:09 +0000 (10:26 -0800)
src/gallium/drivers/iris/iris_pipe.h

index 1cb0a76af9ad782fce9a1195c978a8e533b57d16..dac81009168362486e274ecc6fcf87bc30e85979 100644 (file)
@@ -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] = {