ac/nir: Rewrite gather4 integer workaround based on radeonsi
authorConnor Abbott <cwabbott0@gmail.com>
Thu, 6 Jun 2019 10:16:18 +0000 (12:16 +0200)
committerConnor Abbott <cwabbott0@gmail.com>
Tue, 3 Sep 2019 13:50:54 +0000 (13:50 +0000)
commitc63ccf90dfc087420863ee0e24867895affa40a9
tree14520141dad293256b532e6f5ea94176f91f70fb
parent5f7d90f2ffb3cc6f2c9518870da9009b05c1a063
ac/nir: Rewrite gather4 integer workaround based on radeonsi

The workaround was originally written based on amdgpu-pro traces, but
since then radeonsi has got its own slightly different version. Use the
radeonsi version instead, to be consistent and because it'll be slightly
more convenient for handling unnormalized coordinates.

Acked-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/common/ac_nir_to_llvm.c