Skip to content
Snippets Groups Projects
Commit 5f61744a authored by Stéphane Marchesin's avatar Stéphane Marchesin
Browse files

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: default avatarStéphane Marchesin <marcheu@chromium.org>
parent 25b00f46
No related branches found
No related tags found
Loading
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment