ac/nir: Fix gather4 integer wa with unnormalized coordinates
authorConnor Abbott <cwabbott0@gmail.com>
Thu, 6 Jun 2019 14:28:48 +0000 (16:28 +0200)
committerConnor Abbott <cwabbott0@gmail.com>
Tue, 3 Sep 2019 13:50:54 +0000 (13:50 +0000)
commit2abf62d3483afd8f0de7f19d114d164de4741127
treefbc074d4712379ff5b3cabe8978fefcc52621f5d
parentc63ccf90dfc087420863ee0e24867895affa40a9
ac/nir: Fix gather4 integer wa with unnormalized coordinates

This adds a bit of unneccesary code on radeonsi, since whether
unnormalized coordinates are used is known at compile time with GL, but
I wasn't sure if it was worth the few instructions to plumb everything
through, especially for something so rare -- my shader-db doesn't have
any instances where this changes anything.

Fixes CTS tests I created at
https://github.com/cwabbott0/VK-GL-CTS/tree/unnorm-gather-tests

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