mesa/src/compiler/spirv
Karol Herbst d0c6ef2793 nir: rename global/local to private/function memory
the naming is a bit confusing no matter how you look at it. Within SPIR-V
"global" memory is memory accessible from all threads. glsl "global" memory
normally refers to shader thread private memory declared at global scope. As
we already use "shared" for memory shared across all thrads of a work group
the solution where everybody could be happy with is to rename "global" to
"private" and use "global" later for memory usually stored within system
accessible memory (be it VRAM or system RAM if keeping SVM in mind).
glsl "local" memory is memory only accessible within a function, while SPIR-V
"local" memory is memory accessible within the same workgroup.

v2: rename local to function as well
v3: rename vtn_variable_mode_local as well

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
2019-01-08 18:51:46 +01:00
..
.gitignore .gitignore: Ignore new generated files 2018-01-08 21:11:11 -08:00
gl_spirv.c nir/spirv: add gl_spirv_validation method 2018-03-30 09:14:56 +02:00
GLSL.ext.AMD.h spirv: import AMD extensions header from glslang 2018-03-07 23:09:58 +01:00
GLSL.std.450.h spirv: bump headers to SPIRV 1.1 2017-01-25 17:22:23 +00:00
meson.build meson: Build with Python 3 2018-08-10 15:15:09 -07:00
nir_spirv.h spirv: Add support for using derefs for UBO/SSBO access 2019-01-08 00:38:30 +00:00
OpenCL.std.h nir/spirv: import OpenCL.std.h 2018-07-24 20:40:05 +02:00
spirv.core.grammar.json spirv: Update SPIR-V json and headers to Khronos master 2018-10-13 09:56:18 -05:00
spirv.h spirv: Update SPIR-V json and headers to Khronos master 2018-10-13 09:56:18 -05:00
spirv2nir.c spirv: Rework logging 2017-12-04 09:21:09 -08:00
spirv_info.h spirv/info: Add spirv_op_to_string 2018-01-08 14:57:44 -08:00
spirv_info_c.py spirv/info: Add spirv_op_to_string 2018-01-08 14:57:44 -08:00
spirv_to_nir.c spirv: Add support for using derefs for UBO/SSBO access 2019-01-08 00:38:30 +00:00
vtn_alu.c nir: Switch to using 1-bit Booleans for almost everything 2018-12-16 21:03:02 +00:00
vtn_amd.c nir/spirv: s/uint32_t/SpvOp/ in various functions 2018-03-30 14:33:33 -06:00
vtn_cfg.c nir: rename global/local to private/function memory 2019-01-08 18:51:46 +01:00
vtn_gather_types_c.py spirv: Add a prepass to set types on vtn_values 2017-12-11 22:28:34 -08:00
vtn_glsl450.c spirv: Handle any bit size in vector_insert/extract 2019-01-08 00:38:29 +00:00
vtn_private.h nir: rename global/local to private/function memory 2019-01-08 18:51:46 +01:00
vtn_subgroup.c spirv: Initialize subgroup destinations with the destination type 2018-10-26 11:45:29 -05:00
vtn_variables.c nir: rename global/local to private/function memory 2019-01-08 18:51:46 +01:00