Module: Mesa Branch: master Commit: d3e948340be3fe61d3724f1b96651c2097b4026e URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d3e948340be3fe61d3724f1b96651c2097b4026e
Author: Juha-Pekka Heikkila <juhapekka.heikk...@gmail.com> Date: Fri Feb 7 14:44:02 2014 +0200 i965: Add missing null check in fs_visitor::dead_code_eliminate_local() Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikk...@gmail.com> Reviewed-by: Brian Paul <bri...@vmware.com> --- src/mesa/drivers/dri/i965/brw_fs.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index c290c28..217892a 100644 --- 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; _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-commit