gallium: Silence compiler warnings.
authormichal <michal@transistor.(none)>
Thu, 10 Dec 2009 08:29:15 +0000 (09:29 +0100)
committermichal <michal@transistor.(none)>
Thu, 10 Dec 2009 08:29:15 +0000 (09:29 +0100)
src/gallium/drivers/i915/i915_state.c
src/gallium/drivers/i965/brw_pipe_sampler.c
src/gallium/drivers/softpipe/sp_state_sampler.c
src/gallium/drivers/svga/svga_pipe_sampler.c

index b38d1b2404a027b11fda79f391530fc7e143e8be..46703dce350deb06c76103ed720ac1003cdd6286 100644 (file)
@@ -596,7 +596,6 @@ i915_create_sampler_view(struct pipe_context *pipe,
                          struct pipe_texture *texture,
                          const struct pipe_sampler_view *templ)
 {
-   struct i915_context *i915 = i915_context(pipe);
    struct pipe_sampler_view *view = CALLOC_STRUCT(pipe_sampler_view);
 
    *view = *templ;
index fe1d18ae7736dce33c7219bdfc5f129e218d7bb0..fbc3a07d61ecfc97d4531ed1d1d167c6dddb532b 100644 (file)
@@ -217,7 +217,6 @@ brw_create_sampler_view(struct pipe_context *pipe,
                         struct pipe_texture *texture,
                         const struct pipe_sampler_view *templ)
 {
-   struct brw_context *brw = brw_context(pipe);
    struct pipe_sampler_view *view = CALLOC_STRUCT(pipe_sampler_view);
 
    *view = *templ;
index 5a92e2223ef9bfc5938c8246f6d2a80f76edffd2..8922941994a3c39d6d868dc373dcc067e36c88f3 100644 (file)
@@ -126,7 +126,6 @@ softpipe_create_sampler_view(struct pipe_context *pipe,
                              struct pipe_texture *texture,
                              const struct pipe_sampler_view *templ)
 {
-   struct softpipe_context *softpipe = softpipe_context(pipe);
    struct pipe_sampler_view *view = CALLOC_STRUCT(pipe_sampler_view);
 
    *view = *templ;
@@ -143,8 +142,6 @@ void
 softpipe_sampler_view_destroy(struct pipe_context *pipe,
                               struct pipe_sampler_view *view)
 {
-   struct softpipe_context *softpipe = softpipe_context(pipe);
-
    pipe_texture_reference(&view->texture, NULL);
    FREE(view);
 }
index 268781773081cc488d7016deefd1de45f677edd2..50fe962b28d8744e7fa751c9073f392a4ba187e2 100644 (file)
@@ -181,7 +181,6 @@ svga_create_sampler_view(struct pipe_context *pipe,
                          struct pipe_texture *texture,
                          const struct pipe_sampler_view *templ)
 {
-   struct svga_context *softpipe = svga_context(pipe);
    struct pipe_sampler_view *view = CALLOC_STRUCT(pipe_sampler_view);
 
    *view = *templ;
@@ -198,8 +197,6 @@ static void
 svga_sampler_view_destroy(struct pipe_context *pipe,
                           struct pipe_sampler_view *view)
 {
-   struct svga_context *svga = svga_context(pipe);
-
    pipe_texture_reference(&view->texture, NULL);
    FREE(view);
 }