intel/fs/vec4: add missing dependency in write-on-write fixed GRFs
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 17 Mar 2021 19:30:52 +0000 (21:30 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 17 Mar 2021 23:25:02 +0000 (23:25 +0000)
commit8b6d22109f452b05ab1ce2028f7e18e50edcf325
tree81adba51ada614c0375e13208f1c097365379c39
parent3c72c867422495b1b6e1f5c9cca543ec9ad8a8f5
intel/fs/vec4: add missing dependency in write-on-write fixed GRFs

If we load constant data using pull constant SENDS, and we later load
that register with some other data, we can end up in a situation where
we don't track the initial fixed register write and therefore end up
using uninitialized registers.

This tracks write-on-write of fixed GRFs like we do for normal virtual
GRFs.

v2: Fix post_alloc_reg case (Jason)

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9667>
src/intel/compiler/brw_schedule_instructions.cpp