i915g: Release old fragment shader sampler views with current pipe
authorStuart Abercrombie <sabercrombie@chromium.org>
Thu, 11 Apr 2013 17:57:43 +0000 (10:57 -0700)
committerStéphane Marchesin <marcheu@chromium.org>
Thu, 18 Apr 2013 01:15:12 +0000 (18:15 -0700)
commit1a59cc777fb6c0383ed0c745000ca7409b1027d9
treeff3421ce1eb741d77ab619cc153855b0dda0e6df
parent417d8917d4924652f1cd0c64dbf3677d4eddbf8c
i915g: Release old fragment shader sampler views with current pipe

We were trying to use a destroy method from a deleted context.
This fix is based on what's in the svga driver.

Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
src/gallium/drivers/i915/i915_state.c