Mesa (gallium-sampler-view): gallium: Silence compiler warnings.

Michał Król michal at kemper.freedesktop.org
Thu Feb 25 12:50:52 UTC 2010


Module: Mesa
Branch: gallium-sampler-view
Commit: 3a7314a78d2d239aef4032445c41e530ec13d3e0
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3a7314a78d2d239aef4032445c41e530ec13d3e0

Author: michal <michal at transistor.(none)>
Date:   Thu Dec 10 09:29:15 2009 +0100

gallium: Silence compiler warnings.

---

 src/gallium/drivers/i915/i915_state.c           |    1 -
 src/gallium/drivers/i965/brw_pipe_sampler.c     |    1 -
 src/gallium/drivers/softpipe/sp_state_sampler.c |    3 ---
 src/gallium/drivers/svga/svga_pipe_sampler.c    |    3 ---
 4 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/src/gallium/drivers/i915/i915_state.c b/src/gallium/drivers/i915/i915_state.c
index b38d1b2..46703dc 100644
--- a/src/gallium/drivers/i915/i915_state.c
+++ b/src/gallium/drivers/i915/i915_state.c
@@ -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;
diff --git a/src/gallium/drivers/i965/brw_pipe_sampler.c b/src/gallium/drivers/i965/brw_pipe_sampler.c
index fe1d18a..fbc3a07 100644
--- a/src/gallium/drivers/i965/brw_pipe_sampler.c
+++ b/src/gallium/drivers/i965/brw_pipe_sampler.c
@@ -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;
diff --git a/src/gallium/drivers/softpipe/sp_state_sampler.c b/src/gallium/drivers/softpipe/sp_state_sampler.c
index 5a92e22..8922941 100644
--- a/src/gallium/drivers/softpipe/sp_state_sampler.c
+++ b/src/gallium/drivers/softpipe/sp_state_sampler.c
@@ -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);
 }
diff --git a/src/gallium/drivers/svga/svga_pipe_sampler.c b/src/gallium/drivers/svga/svga_pipe_sampler.c
index 2687817..50fe962 100644
--- a/src/gallium/drivers/svga/svga_pipe_sampler.c
+++ b/src/gallium/drivers/svga/svga_pipe_sampler.c
@@ -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);
 }




More information about the mesa-commit mailing list