diff options
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp b/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp index 747c5fc6293..6e7a9a4690f 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp @@ -107,7 +107,7 @@ brw_alloc_reg_set(struct brw_context *brw, int reg_width, int base_reg_count) ralloc_free(brw->wm.regs); brw->wm.regs = ra_alloc_reg_set(brw, ra_reg_count); ralloc_free(brw->wm.classes); - brw->wm.classes = ralloc_array(brw, int, class_count + 1); + brw->wm.classes = ralloc_array(brw, int, class_count); brw->wm.aligned_pairs_class = -1; |