projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e503609
)
i965: Add missing null check in fs_visitor::dead_code_eliminate_local()
author
Juha-Pekka Heikkila
<juhapekka.heikkila@gmail.com>
Fri, 7 Feb 2014 12:44:02 +0000
(14:44 +0200)
committer
Brian Paul
<brianp@vmware.com>
Fri, 7 Feb 2014 15:14:05 +0000
(08:14 -0700)
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
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 c290c28c47c79f73de0876f00a0dafec2c7a368b..217892a3f8bc49e78ad5e631809a6ca0f519f4a7 100644
(file)
--- a/
src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/
src/mesa/drivers/dri/i965/brw_fs.cpp
@@
-2190,6
+2190,10
@@
fs_visitor::dead_code_eliminate_local()
ht = _mesa_hash_table_create(mem_ctx, dead_code_hash_compare);
+ if (ht == NULL) {
+ return false;
+ }
+
foreach_list_safe(node, &this->instructions) {
fs_inst *inst = (fs_inst *)node;