swr/rast: Fix alloca usage in jitter
authorGeorge Kyriazis <george.kyriazis@intel.com>
Thu, 5 Apr 2018 20:59:54 +0000 (15:59 -0500)
committerGeorge Kyriazis <george.kyriazis@intel.com>
Wed, 18 Apr 2018 15:51:38 +0000 (10:51 -0500)
commitaa482014e542de21785b2a4386ebbfc4a8e8df1d
tree0f332dba90f34c915ec9a702b3a20643b19f106a
parent81371a59093d59963a43b7f1becbed9d3c657e45
swr/rast: Fix alloca usage in jitter

Fix issue where temporary allocas were getting hoisted to function entry
unnecessarily. We now explicitly mark temporary allocas and skip hoisting
during the hoist pass. Shuold reduce stack usage.

Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/rasterizer/jitter/builder.cpp
src/gallium/drivers/swr/rasterizer/jitter/builder.h
src/gallium/drivers/swr/rasterizer/jitter/builder_mem.cpp