swr/rast: Convert C Sampler intrinsics
[mesa.git] / src / gallium / auxiliary / postprocess / pp_celshade.c
index 447b4015be426cfc206eeb5b6405534833969ab6..9b19fdd84daeaa0972e9deca2d10303ec13fd7b4 100644 (file)
 #include "postprocess/postprocess.h"
 #include "postprocess/pp_celshade.h"
 #include "postprocess/pp_filters.h"
+#include "postprocess/pp_private.h"
 
 /** Init function */
-void
+bool
 pp_celshade_init(struct pp_queue_t *ppq, unsigned int n, unsigned int val)
 {
    ppq->shaders[n][1] =
       pp_tgsi_to_state(ppq->p->pipe, celshade, false, "celshade");
+
+   return (ppq->shaders[n][1] != NULL) ? TRUE : FALSE;
+}
+
+/** Free function */
+void
+pp_celshade_free(struct pp_queue_t *ppq, unsigned int n)
+{
 }