From: Stephane Marchesin Date: Sat, 12 Oct 2013 18:38:14 +0000 (-0700) Subject: i915g: Fix assert X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5ceeeb360ea5d199263eeb20edc12a0f10b324cf;p=mesa.git i915g: Fix assert Now that we support start, assert on start + num < max samplers Reported by xexaxo --- 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 &&