mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
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 <marcheu@chromium.org>
This commit is contained in:
parent
25b00f4617
commit
5f61744adb
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue