summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i965/brw_fs.cpp
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-10-13 19:21:32 -0700
committerEric Anholt <eric@anholt.net>2010-10-14 10:42:55 -0700
commit0c6752026c405dc3ab5fe85c6a40ac3f04c685c3 (patch)
treeefb0e4fa53f3f36839553e91b2981b82a568e995 /src/mesa/drivers/dri/i965/brw_fs.cpp
parentf0bd76f28d17da6eabf977a7e619e4ff943a70c7 (diff)
i965: Set class_sizes[] for the aligned reg pair class.
So far, I've only seen this be a valgrind warning and not a real failure.
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs.cpp')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index 7119f971f8..c0fee114a8 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -2237,6 +2237,7 @@ fs_visitor::assign_regs()
aligned_pair_class = class_count;
classes[aligned_pair_class] = ra_alloc_reg_class(regs);
+ class_sizes[aligned_pair_class] = 2;
class_base_reg[aligned_pair_class] = 0;
class_reg_count[aligned_pair_class] = 0;
int start = (this->first_non_payload_grf & 1) ? 1 : 0;