summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/i915simple
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-11-07 09:53:25 -0700
committerBrian <brian.paul@tungstengraphics.com>2007-11-07 09:53:25 -0700
commit182e861eeae479c85191fcd6ccb41bf10f43507b (patch)
treefba328a51f4a00b1fdeadfd1646fab3a4cacd2cc /src/mesa/pipe/i915simple
parent5d9021554ee78699933ddf79e5231cded6f9c641 (diff)
downloadexternal_mesa3d-182e861eeae479c85191fcd6ccb41bf10f43507b.zip
external_mesa3d-182e861eeae479c85191fcd6ccb41bf10f43507b.tar.gz
external_mesa3d-182e861eeae479c85191fcd6ccb41bf10f43507b.tar.bz2
Disable the call to driBOReference() in i915_update_texture()
It doesn't seem to be needed and disabling it fixes a big memory leak with some programs like xdemos/wincopy.c
Diffstat (limited to 'src/mesa/pipe/i915simple')
-rw-r--r--src/mesa/pipe/i915simple/i915_state_sampler.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/pipe/i915simple/i915_state_sampler.c b/src/mesa/pipe/i915simple/i915_state_sampler.c
index 8dec678..95da30a 100644
--- a/src/mesa/pipe/i915simple/i915_state_sampler.c
+++ b/src/mesa/pipe/i915simple/i915_state_sampler.c
@@ -234,10 +234,14 @@ i915_update_texture(struct i915_context *i915, uint unit,
}
#endif
-
+ /* this reference does not seem to be needed. In fact, when it's enabled
+ * we leak a lot of memory (try xdemos/wincopy).
+ */
+#if 0
{
/*struct pipe_buffer_handle *p =*/ driBOReference(mt->region->buffer);
}
+#endif
#if 0
i915->state.tex_buffer[unit] = driBOReference(intelObj->mt->region->