nir: Add load/store/atomic global intrinsics
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 19 Nov 2018 19:40:35 +0000 (13:40 -0600)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 26 Jan 2019 19:39:18 +0000 (13:39 -0600)
commite461926ef2793d5969604b75c72d365d46a58cd0
treecfbe2fa8a17b1503f323de47a732e81d90a2165c
parent6380fedb60a0e51574cfb9df32e283ec33d5e5fa
nir: Add load/store/atomic global intrinsics

These correspond roughly to reading/writing OpenCL global pointers.  The
idea is that they just take a bare address and load/store from it.  Of
course, exactly what this address means is driver-dependent.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
src/compiler/nir/nir_intrinsics.py
src/compiler/nir/nir_lower_io.c
src/compiler/nir/nir_lower_phis_to_scalar.c