#include "main/mtypes.h"
#include "program/ir_to_mesa.h"
+
#ifdef __cplusplus
extern "C" {
#endif
+
+
/**
* Internal functions
*/
_mesa_free_shader_state(struct gl_context *ctx);
-static INLINE GLuint
+static inline gl_shader_type
_mesa_shader_type_to_index(GLenum v)
{
switch (v) {
return MESA_SHADER_GEOMETRY;
default:
ASSERT(0 && "bad value in _mesa_shader_type_to_index()");
- return ~0;
+ return MESA_SHADER_TYPES;
}
}
-static INLINE GLenum
+static inline GLenum
_mesa_shader_index_to_type(GLuint i)
{
static const GLenum enums[MESA_SHADER_TYPES] = {