summaryrefslogtreecommitdiffstats
path: root/src/mesa/program/prog_parameter.h
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2016-03-18 11:32:15 +1100
committerTimothy Arceri <[email protected]>2016-03-18 12:42:43 +1100
commitce9c042ab3d1c86837285c4e4d6de07646c1952f (patch)
treee16f2c680a6df54064024af49b2f948dd07cdd91 /src/mesa/program/prog_parameter.h
parentfa9bd6b663a1c78d5a17e3ad5407ff5530fbb0c9 (diff)
mesa: inline _mesa_add_unnamed_constant()
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa/program/prog_parameter.h')
-rw-r--r--src/mesa/program/prog_parameter.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mesa/program/prog_parameter.h b/src/mesa/program/prog_parameter.h
index b4b24a11af3..320f64f3f54 100644
--- a/src/mesa/program/prog_parameter.h
+++ b/src/mesa/program/prog_parameter.h
@@ -116,10 +116,14 @@ _mesa_add_typed_unnamed_constant(struct gl_program_parameter_list *paramList,
const gl_constant_value values[4], GLuint size,
GLenum datatype, GLuint *swizzleOut);
-extern GLint
+static inline GLint
_mesa_add_unnamed_constant(struct gl_program_parameter_list *paramList,
const gl_constant_value values[4], GLuint size,
- GLuint *swizzleOut);
+ GLuint *swizzleOut)
+{
+ return _mesa_add_typed_unnamed_constant(paramList, values, size, GL_NONE,
+ swizzleOut);
+}
extern GLint
_mesa_add_state_reference(struct gl_program_parameter_list *paramList,