summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2012-10-01 16:41:02 -0700
committerEric Anholt <[email protected]>2012-10-17 13:01:51 -0700
commit6c69df1e0f9111e178ecff421f1a4ae74dbac359 (patch)
treeba8f39079afaa2c786f30cbe00b6c0964a81a4c5 /src/mesa
parent5d90b988791e51cfb6413109271ad102fd7a304c (diff)
i965/fs: Remove extra allocation for classes[].
This was to slot in the magic aligned pairs class, but it got moved to a descriptive name later. Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp2
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;