intel/compiler: Generalize shader relocations a bit
authorJason Ekstrand <jason@jlekstrand.net>
Fri, 4 Sep 2020 17:09:11 +0000 (12:09 -0500)
committerMarge Bot <eric+marge@anholt.net>
Tue, 22 Jun 2021 21:09:25 +0000 (21:09 +0000)
commit55508bbe66cdae22cc8ae74f27829fba13f393c7
treedce972b05ae0a1b4956235f8ec0598425bea54f5
parentf7668d6fe5aed6706e7ee1c42d4053ed2c61adfb
intel/compiler: Generalize shader relocations a bit

This commit adds a delta to be added to the relocated value as well as
the possibility of multiple types of relocations.

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.c
src/intel/compiler/brw_compiler.h
src/intel/compiler/brw_eu.h
src/intel/compiler/brw_eu_emit.c