projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ee0941
)
i965: Add a sanity check for register allocation sizes.
author
Eric Anholt
<eric@anholt.net>
Fri, 1 Oct 2010 23:35:55 +0000
(16:35 -0700)
committer
Eric Anholt
<eric@anholt.net>
Sat, 2 Oct 2010 00:19:03 +0000
(17:19 -0700)
src/mesa/drivers/dri/i965/brw_fs.cpp
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_fs.cpp
b/src/mesa/drivers/dri/i965/brw_fs.cpp
index b38df71a84a6c9a10a567003e32d4b368b64fd84..ba6c048f38ff290054a0e3c6233ea3b418510a03 100644
(file)
--- a/
src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/
src/mesa/drivers/dri/i965/brw_fs.cpp
@@
-2293,6
+2293,11
@@
fs_visitor::assign_regs()
break;
}
if (i == class_count) {
+ if (this->virtual_grf_sizes[r] >= base_reg_count) {
+ fprintf(stderr, "Object too large to register allocate.\n");
+ this->fail = true;
+ }
+
class_sizes[class_count++] = this->virtual_grf_sizes[r];
}
}