ac/nir: mark some texture intrinsics as convergent
authorRhys Perry <pendingchaos02@gmail.com>
Wed, 29 May 2019 15:07:44 +0000 (16:07 +0100)
committerRhys Perry <pendingchaos02@gmail.com>
Tue, 4 Jun 2019 16:30:53 +0000 (17:30 +0100)
commit73dda85512942e67991a5fbc3c9a1714e7624d00
tree109b51d62c904f8b740f364183717d2afd734878
parentd4a2f8b33bead997e5629eb3f15c3632e930022d
ac/nir: mark some texture intrinsics as convergent

Otherwise LLVM can sink them and their texture coordinate calculations
into divergent branches.

v2: simplify the conditions on which the intrinsic is marked as convergent
v3: only mark as convergent in FS and CS with derivative groups

Cc: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/amd/common/ac_nir_to_llvm.c