gallium: Use stricter types.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Wed, 27 Feb 2008 05:06:07 +0000 (14:06 +0900)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Wed, 27 Feb 2008 06:24:54 +0000 (15:24 +0900)
VC++ won't silently convert a pointer to a function with typed pointer
arguments to one with void pointer arguments.

src/gallium/auxiliary/cso_cache/cso_cache.h

index 3b0fe10..44ee128 100644 (file)
@@ -88,44 +88,44 @@ struct cso_cache;
 
 struct cso_blend {
    struct pipe_blend_state state;
-   void   *data;
-   void   (*delete_state)(void *, void  *);
-   void   *context;
+   void *data;
+   void (*delete_state)(struct pipe_context *, void *);
+   struct pipe_context *context;
 };
 
 struct cso_depth_stencil_alpha {
    struct pipe_depth_stencil_alpha_state state;
    void *data;
-   void   (*delete_state)(void *, void  *);
-   void   *context;
+   void (*delete_state)(struct pipe_context *, void *);
+   struct pipe_context *context;
 };
 
 struct cso_rasterizer {
    struct pipe_rasterizer_state state;
    void *data;
-   void   (*delete_state)(void *, void  *);
-   void   *context;
+   void (*delete_state)(struct pipe_context *, void *);
+   struct pipe_context *context;
 };
 
 struct cso_fragment_shader {
    struct pipe_shader_state state;
    void *data;
-   void   (*delete_state)(void *, void  *);
-   void   *context;
+   void (*delete_state)(struct pipe_context *, void *);
+   struct pipe_context *context;
 };
 
 struct cso_vertex_shader {
    struct pipe_shader_state state;
    void *data;
-   void   (*delete_state)(void *, void  *);
-   void   *context;
+   void (*delete_state)(struct pipe_context *, void *);
+   struct pipe_context *context;
 };
 
 struct cso_sampler {
    struct pipe_sampler_state state;
    void *data;
-   void   (*delete_state)(void *, void  *);
-   void   *context;
+   void (*delete_state)(struct pipe_context *, void *);
+   struct pipe_context *context;
 };