summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/atifragshader.h
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2010-05-12 13:26:14 +0800
committerChia-I Wu <[email protected]>2010-05-12 13:46:53 +0800
commiteb5100accc888b9a9cfc24bc3d3452ea62a84c09 (patch)
treeeafafda093057cc3cc345c10e3b3566dcaa0d79c /src/mesa/shader/atifragshader.h
parent82c6c31f55cfa8db63361b174137b2a371aa4900 (diff)
mesa: Make FEATURE_ATI_fragment_shader more modular.
This allows atifragshader.h to be used without knowing if FEATURE_ATI_fragment_shader is enabled. As a result, atifragshader.c is removed from the omit list in ES overlay.
Diffstat (limited to 'src/mesa/shader/atifragshader.h')
-rw-r--r--src/mesa/shader/atifragshader.h28
1 files changed, 27 insertions, 1 deletions
diff --git a/src/mesa/shader/atifragshader.h b/src/mesa/shader/atifragshader.h
index e1dc20e6065..31c335ec815 100644
--- a/src/mesa/shader/atifragshader.h
+++ b/src/mesa/shader/atifragshader.h
@@ -60,6 +60,11 @@ struct atifs_setupinst
};
+#if FEATURE_ATI_fragment_shader
+
+extern void
+_mesa_init_ati_fragment_shader_dispatch(struct _glapi_table *disp);
+
extern struct ati_fragment_shader *
_mesa_new_ati_fragment_shader(GLcontext *ctx, GLuint id);
@@ -120,4 +125,25 @@ _mesa_AlphaFragmentOp3ATI(GLenum op, GLuint dst, GLuint dstMod, GLuint arg1,
extern void GLAPIENTRY
_mesa_SetFragmentShaderConstantATI(GLuint dst, const GLfloat * value);
-#endif
+#else /* FEATURE_ATI_fragment_shader */
+
+static INLINE void
+_mesa_init_ati_fragment_shader_dispatch(struct _glapi_table *disp)
+{
+}
+
+static INLINE struct ati_fragment_shader *
+_mesa_new_ati_fragment_shader(GLcontext *ctx, GLuint id)
+{
+ return NULL;
+}
+
+static INLINE void
+_mesa_delete_ati_fragment_shader(GLcontext *ctx,
+ struct ati_fragment_shader *s)
+{
+}
+
+#endif /* FEATURE_ATI_fragment_shader */
+
+#endif /* ATIFRAGSHADER_H */