From 5ceeeb360ea5d199263eeb20edc12a0f10b324cf Mon Sep 17 00:00:00 2001 From: Stephane Marchesin Date: Sat, 12 Oct 2013 11:38:14 -0700 Subject: [PATCH] i915g: Fix assert Now that we support start, assert on start + num < max samplers Reported by xexaxo --- src/gallium/drivers/i915/i915_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/i915/i915_state.c b/src/gallium/drivers/i915/i915_state.c index a858a2589b8..f722e2dcfeb 100644 --- a/src/gallium/drivers/i915/i915_state.c +++ b/src/gallium/drivers/i915/i915_state.c @@ -300,7 +300,7 @@ i915_bind_vertex_sampler_states(struct pipe_context *pipe, struct i915_context *i915 = i915_context(pipe); unsigned i; - assert(num <= Elements(i915->vertex_samplers)); + assert(start + num <= Elements(i915->vertex_samplers)); /* Check for no-op */ if (num == i915->num_vertex_samplers && -- 2.30.2