intel/fs: Add support for compiling bindless shaders with resume shaders
authorJason Ekstrand <jason@jlekstrand.net>
Fri, 4 Sep 2020 17:40:06 +0000 (12:40 -0500)
committerMarge Bot <eric+marge@anholt.net>
Tue, 22 Jun 2021 21:09:25 +0000 (21:09 +0000)
commit705395344d2541d038326a6f64fbff838b52a71e
tree4a343f7fdbaef661b24d809259bb17114004b34d
parentd055ac9bdf6a07f14b405d2ed1d6400e9b7c638f
intel/fs: Add support for compiling bindless shaders with resume shaders

Instead of depending on the driver to compile each resume shader
separately, we compile them all in one go in the back-end and build an
SBT as part of the shader program.  Shader relocs are used to make the
entries in the SBT point point to the correct resume shader.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8637>
src/intel/compiler/brw_compiler.h
src/intel/compiler/brw_fs.cpp
src/intel/compiler/brw_fs.h
src/intel/compiler/brw_fs_generator.cpp