i915g: Don't write constants past I915_MAX_CONSTANT
authorStéphane Marchesin <marcheu@chromium.org>
Sat, 22 Nov 2014 08:08:24 +0000 (00:08 -0800)
committerStéphane Marchesin <marcheu@chromium.org>
Sat, 22 Nov 2014 08:13:39 +0000 (00:13 -0800)
commita9b07870764db617f199745573bfccddf9b378f9
tree0ce4223052dd14642eaec9428fd5fdbc9fa99a32
parent5f61744adba322eaec9a357f09f5ed3bee29226b
i915g: Don't write constants past I915_MAX_CONSTANT

This happens with glsl-convolution-1, where we have 64 constants. This
doesn't make the test pass (we don't have 64 constants anyway, only
32) but this prevents it from crashing.

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