llvmpipe: plug in dummy pipe_context::set_vertex_sampler_textures function
authorBrian Paul <brianp@vmware.com>
Wed, 2 Dec 2009 17:09:53 +0000 (10:09 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 2 Dec 2009 17:11:05 +0000 (10:11 -0700)
Fixes immediate segfault.

src/gallium/drivers/llvmpipe/lp_context.c
src/gallium/drivers/llvmpipe/lp_state.h
src/gallium/drivers/llvmpipe/lp_state_sampler.c

index c081f6de036b2599d1bf80c86a4410564adf99dd..66549132d463c5e976c0f2b59c9316f63d459d99 100644 (file)
@@ -205,7 +205,8 @@ llvmpipe_create( struct pipe_screen *screen )
    llvmpipe->pipe.set_framebuffer_state = llvmpipe_set_framebuffer_state;
    llvmpipe->pipe.set_polygon_stipple = llvmpipe_set_polygon_stipple;
    llvmpipe->pipe.set_scissor_state = llvmpipe_set_scissor_state;
-   llvmpipe->pipe.set_fragment_sampler_textures = llvmpipe_set_sampler_textures;
+   llvmpipe->pipe.set_fragment_sampler_textures = llvmpipe_set_fragment_sampler_textures;
+   llvmpipe->pipe.set_vertex_sampler_textures = llvmpipe_set_vertex_sampler_textures;
    llvmpipe->pipe.set_viewport_state = llvmpipe_set_viewport_state;
 
    llvmpipe->pipe.set_vertex_buffers = llvmpipe_set_vertex_buffers;
index 7b26ce61a380748d1c41882921d5987712835f51..805959af89fc1032caad1891c8371fc6c9f54216 100644 (file)
@@ -168,9 +168,13 @@ void llvmpipe_set_polygon_stipple( struct pipe_context *,
 void llvmpipe_set_scissor_state( struct pipe_context *,
                                  const struct pipe_scissor_state * );
 
-void llvmpipe_set_sampler_textures( struct pipe_context *,
-                                    unsigned num,
-                                    struct pipe_texture ** );
+void llvmpipe_set_fragment_sampler_textures( struct pipe_context *,
+                                             unsigned num,
+                                             struct pipe_texture ** );
+
+void llvmpipe_set_vertex_sampler_textures( struct pipe_context *,
+                                           unsigned num,
+                                           struct pipe_texture ** );
 
 void llvmpipe_set_viewport_state( struct pipe_context *,
                                   const struct pipe_viewport_state * );
index 8333805a3fde21e59307b33dea4e7ce10ef9c518..b61b669093f90374ac28dd7424e2b58ff8a13e19 100644 (file)
@@ -78,8 +78,9 @@ llvmpipe_bind_sampler_states(struct pipe_context *pipe,
 
 
 void
-llvmpipe_set_sampler_textures(struct pipe_context *pipe,
-                              unsigned num, struct pipe_texture **texture)
+llvmpipe_set_fragment_sampler_textures(struct pipe_context *pipe,
+                                       unsigned num,
+                                       struct pipe_texture **texture)
 {
    struct llvmpipe_context *llvmpipe = llvmpipe_context(pipe);
    uint i;
@@ -116,6 +117,15 @@ llvmpipe_set_sampler_textures(struct pipe_context *pipe,
 }
 
 
+void
+llvmpipe_set_vertex_sampler_textures(struct pipe_context *pipe,
+                                     unsigned num,
+                                     struct pipe_texture **texture)
+{
+   /* XXX to do */
+}
+
+
 void
 llvmpipe_delete_sampler_state(struct pipe_context *pipe,
                               void *sampler)