This change allows st_cb_accum.h to be used without knowing if
FEATURE_accum is enabled.
#include "util/u_tile.h"
+#if FEATURE_accum
+
/**
* For hardware that supports deep color buffers, we could accelerate
* most/all the accum operations with blending/texturing.
{
functions->Accum = st_Accum;
}
+
+#endif /* FEATURE_accum */
#define ST_CB_ACCUM_H
+#include "main/mtypes.h"
+
+#if FEATURE_accum
+
extern void
st_clear_accum_buffer(GLcontext *ctx, struct gl_renderbuffer *rb);
extern void st_init_accum_functions(struct dd_function_table *functions);
+#else
+
+static INLINE void
+st_clear_accum_buffer(GLcontext *ctx, struct gl_renderbuffer *rb)
+{
+ ASSERT_NO_FEATURE();
+}
+
+static INLINE void
+st_init_accum_functions(struct dd_function_table *functions)
+{
+}
+
+#endif /* FEATURE_accum */
#endif /* ST_CB_ACCUM_H */
{
_mesa_init_glsl_driver_functions(functions);
-#if FEATURE_accum
st_init_accum_functions(functions);
-#endif
#if FEATURE_EXT_framebuffer_blit
st_init_blit_functions(functions);
#endif