summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/i915/i915_state_emit.c
diff options
context:
space:
mode:
authormichal <michal@transistor.(none)>2009-12-10 07:52:45 +0100
committermichal <michal@transistor.(none)>2009-12-10 07:52:45 +0100
commit1f5285f99771243b636deb9ae0a17c54f818fac6 (patch)
treef67e41d415bcaa6d4508d47631f564a5db96253c /src/gallium/drivers/i915/i915_state_emit.c
parent92b781c2dda9ae5aeec7e32cfc9902057edd0a9d (diff)
i915: Fix for sampler view changes.
Diffstat (limited to 'src/gallium/drivers/i915/i915_state_emit.c')
-rw-r--r--src/gallium/drivers/i915/i915_state_emit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/i915/i915_state_emit.c b/src/gallium/drivers/i915/i915_state_emit.c
index a3d4e3b04e5..202607a6563 100644
--- a/src/gallium/drivers/i915/i915_state_emit.c
+++ b/src/gallium/drivers/i915/i915_state_emit.c
@@ -289,7 +289,8 @@ i915_emit_hardware_state(struct i915_context *i915 )
OUT_BATCH(enabled);
for (unit = 0; unit < I915_TEX_UNITS; unit++) {
if (enabled & (1 << unit)) {
- struct intel_buffer *buf = i915->texture[unit]->buffer;
+ struct i915_texture *texture = (struct i915_texture *)i915->fragment_sampler_views[unit]->texture;
+ struct intel_buffer *buf = texture->buffer;
uint offset = 0;
assert(buf);