ac/nir: restrict fmask lookup to image load intrinsics
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 18 Dec 2018 14:21:56 +0000 (15:21 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 20 Dec 2018 17:01:11 +0000 (18:01 +0100)
commit65d82c84d2902cc4ef4db8670e059f7449e550bd
tree01ccc18b3cfdccb3e43653d9a693aa951a22d861
parentf45e43e156a9cdc0527f63bf0def15766a1c5199
ac/nir: restrict fmask lookup to image load intrinsics

We don't ever want to do the fmask lookup on a atomic or
store, the fmask should have been decompressed if the
surface has been moved to IMAGE_LAYOUT.

Original patch by Dave Airlie.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/common/ac_nir_to_llvm.c