intel/compiler: Reverse inclusion dependency between brw_fs_live_variables.h and...
authorFrancisco Jerez <currojerez@riseup.net>
Thu, 10 Mar 2016 01:03:57 +0000 (17:03 -0800)
committerMatt Turner <mattst88@gmail.com>
Fri, 6 Mar 2020 18:20:26 +0000 (10:20 -0800)
commita6fc88e91bdf9e235aa8a0a0f69f219c051cb1af
treefeaf4f78ecbbd61a11e851f371ca694bfb55509b
parent06c5c4964621268f2dedd63a614ff89f4307057b
intel/compiler: Reverse inclusion dependency between brw_fs_live_variables.h and brw_fs.h

brw_fs.h (in particular fs_visitor) is logically a user of the live
variables analysis pass, not the other way around.
brw_fs_live_variables.h requires the definition of some FS IR data
structures to compile, but those can be obtained directly from
brw_ir_fs.h without including brw_fs.h.  The dependency of
fs_live_variables on fs_visitor is rather accidental and will be
removed in a future commit, a forward declaration is enough for the
moment.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4012>
src/intel/compiler/brw_fs.h
src/intel/compiler/brw_fs_live_variables.cpp
src/intel/compiler/brw_fs_live_variables.h