intel/fs: copy instruction sources in logical send lowering
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 17 Mar 2023 08:38:11 +0000 (10:38 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 5 Apr 2023 12:32:56 +0000 (12:32 +0000)
commit76698f3abd7a42ec64c3b03792069b18fdc3c7ef
treeda7cbdc965f7a0cb0186d471b3e0833f0b98824c
parentadb8c30436222f73cba0abccddf44c89d00f52e1
intel/fs: copy instruction sources in logical send lowering

Having references to inst->src[X] when you're also modifying
inst->src[X] is a receipe for disaster. Making changes to the lowering
code I've been bitten quite a few times by this take copies of all
sources to do the lowering.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21853>
src/intel/compiler/brw_lower_logical_sends.cpp