intel/compiler: Pass backend_shader * to cfg_t()
authorMatt Turner <mattst88@gmail.com>
Fri, 6 Mar 2020 21:34:13 +0000 (13:34 -0800)
committerMarge Bot <eric+marge@anholt.net>
Mon, 9 Mar 2020 04:44:12 +0000 (04:44 +0000)
commite7d0460d585d6df7f2776e7c1c9b0109aed7dbe2
tree5979fe7ea19b974c7e0d81c286612cb9b01c34cb
parentedae75037fe52a88d5f1d6c44484d714fac944d6
intel/compiler: Pass backend_shader * to cfg_t()

As you can see, not having a pointer to the backend_shader from within
the class makes for some weird looking code.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4093>
src/intel/compiler/brw_cfg.cpp
src/intel/compiler/brw_cfg.h
src/intel/compiler/brw_shader.cpp
src/intel/compiler/test_fs_cmod_propagation.cpp
src/intel/compiler/test_fs_copy_propagation.cpp
src/intel/compiler/test_fs_saturate_propagation.cpp
src/intel/compiler/test_fs_scoreboard.cpp