diff options
author | Jason Ekstrand <[email protected]> | 2018-11-19 13:40:35 -0600 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2019-01-26 13:39:18 -0600 |
commit | e461926ef2793d5969604b75c72d365d46a58cd0 (patch) | |
tree | cfbe2fa8a17b1503f323de47a732e81d90a2165c /src/compiler/nir/nir_lower_io.c | |
parent | 6380fedb60a0e51574cfb9df32e283ec33d5e5fa (diff) |
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 <[email protected]>
Reviewed-by: Karol Herbst <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_lower_io.c')
-rw-r--r-- | src/compiler/nir/nir_lower_io.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_lower_io.c b/src/compiler/nir/nir_lower_io.c index 06598e054a6..f07be78aa99 100644 --- a/src/compiler/nir/nir_lower_io.c +++ b/src/compiler/nir/nir_lower_io.c @@ -944,6 +944,7 @@ nir_get_io_offset_src(nir_intrinsic_instr *instr) case nir_intrinsic_load_output: case nir_intrinsic_load_shared: case nir_intrinsic_load_uniform: + case nir_intrinsic_load_global: return &instr->src[0]; case nir_intrinsic_load_ubo: case nir_intrinsic_load_ssbo: @@ -952,6 +953,7 @@ nir_get_io_offset_src(nir_intrinsic_instr *instr) case nir_intrinsic_load_interpolated_input: case nir_intrinsic_store_output: case nir_intrinsic_store_shared: + case nir_intrinsic_store_global: return &instr->src[1]; case nir_intrinsic_store_ssbo: case nir_intrinsic_store_per_vertex_output: |