Mesa (softpipe-opt): softpipe: add missing sp_sampler_varient_destroy

Keith Whitwell keithw at kemper.freedesktop.org
Fri Aug 21 17:45:08 UTC 2009


Module: Mesa
Branch: softpipe-opt
Commit: ecfa8be150ed276af816467b467e76e026f5b541
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ecfa8be150ed276af816467b467e76e026f5b541

Author: Keith Whitwell <keithw at vmware.com>
Date:   Fri Aug 21 18:44:27 2009 +0100

softpipe: add missing sp_sampler_varient_destroy

---

 src/gallium/drivers/softpipe/sp_tex_sample.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/softpipe/sp_tex_sample.c b/src/gallium/drivers/softpipe/sp_tex_sample.c
index 51118ae..a2e2a22 100644
--- a/src/gallium/drivers/softpipe/sp_tex_sample.c
+++ b/src/gallium/drivers/softpipe/sp_tex_sample.c
@@ -1558,6 +1558,14 @@ sp_sampler_varient_bind_texture( struct sp_sampler_varient *samp,
    samp->level = CLAMP((int) sampler->min_lod, 0, (int) texture->last_level);
 }
 
+
+void
+sp_sampler_varient_destroy( struct sp_sampler_varient *samp )
+{
+   FREE(samp);
+}
+
+
 /* Create a sampler varient for a given set of non-orthogonal state.  Currently the 
  */
 struct sp_sampler_varient *




More information about the mesa-commit mailing list