i964/fs: Refactor assign_constant_locations
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 19 Aug 2015 00:40:02 +0000 (17:40 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 27 Aug 2015 19:09:24 +0000 (12:09 -0700)
commitf2e667172a6382f81d1f3e709f02c7ee6cfda4c7
treeaf4448eb075d83c9c75655e40262ef00ab3a9e21
parent885a9b058cd8f2d49ae675513003eb1164888ad3
i964/fs: Refactor assign_constant_locations

Now that all constant locations are assigned in a single function, we can
refactor it a bit to unify things.  In particular, we now handle
pull_constant_loc and push_constant_loc more similarly and we only modify
stage_prog_data->params[] in one place at the end of the function.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs.cpp