summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephane Marchesin <[email protected]>2013-10-12 11:38:14 -0700
committerStephane Marchesin <[email protected]>2013-10-12 11:40:54 -0700
commit5ceeeb360ea5d199263eeb20edc12a0f10b324cf (patch)
tree20f4d62571936731cd12e220c57dd17302b8761a
parent975c6ce605346a8619eab7d0752aecad07598e33 (diff)
i915g: Fix assert
Now that we support start, assert on start + num < max samplers Reported by xexaxo
-rw-r--r--src/gallium/drivers/i915/i915_state.c2
1 files changed, 1 insertions, 1 deletions
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 &&