Module: Mesa Branch: master Commit: 5f61744adba322eaec9a357f09f5ed3bee29226b URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5f61744adba322eaec9a357f09f5ed3bee29226b
Author: Stéphane Marchesin <marc...@chromium.org> Date: Sat Nov 22 00:07:52 2014 -0800 i915g: Don't hardcode array size for phase count This is an array of temp registers, so use I915_MAX_TEMPORARY for the size. Signed-off-by: Stéphane Marchesin <marc...@chromium.org> --- src/gallium/drivers/i915/i915_fpc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/i915/i915_fpc.h b/src/gallium/drivers/i915/i915_fpc.h index 8711630..a4dbcb4 100644 --- a/src/gallium/drivers/i915/i915_fpc.h +++ b/src/gallium/drivers/i915/i915_fpc.h @@ -72,7 +72,7 @@ struct i915_fp_compile { uint temp_flag; /**< Tracks temporary regs which are in use */ uint utemp_flag; /**< Tracks TYPE_U temporary regs which are in use */ - uint register_phases[16]; + uint register_phases[I915_MAX_TEMPORARY]; uint nr_tex_indirect; uint nr_tex_insn; uint nr_alu_insn; _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-commit