Mesa (master): i965/fs: Remove extra allocation for classes[].
Eric Anholt
anholt at kemper.freedesktop.org
Wed Oct 17 20:02:43 UTC 2012
Module: Mesa
Branch: master
Commit: 6c69df1e0f9111e178ecff421f1a4ae74dbac359
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6c69df1e0f9111e178ecff421f1a4ae74dbac359
Author: Eric Anholt <eric at anholt.net>
Date: Mon Oct 1 16:41:02 2012 -0700
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 <kenneth at whitecape.org>
---
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 747c5fc..6e7a9a4 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;
More information about the mesa-commit
mailing list