projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d90b98
)
i965/fs: Remove extra allocation for classes[].
author
Eric Anholt
<eric@anholt.net>
Mon, 1 Oct 2012 23:41:02 +0000
(16:41 -0700)
committer
Eric Anholt
<eric@anholt.net>
Wed, 17 Oct 2012 20:01:51 +0000
(13:01 -0700)
This was to slot in the magic aligned pairs class, but it got moved to a
descriptive name later.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp
patch
|
blob
|
history
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 747c5fc6293bbe5f55e219c681941505e93dbbab..6e7a9a4690f6a631373634b6ac777f9ab95c3555 100644
(file)
--- 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;