nir: add builtin builder
authorKarol Herbst <kherbst@redhat.com>
Wed, 25 Apr 2018 16:19:23 +0000 (18:19 +0200)
committerKarol Herbst <kherbst@redhat.com>
Tue, 24 Jul 2018 18:40:05 +0000 (20:40 +0200)
commit2083cfb6eba9a9e7441c44fa0c8402dbc216eb3a
tree0a8288c1ce1c5e4444ca798b8471e2a99c91e86b
parent9e90708d5dec22d6a9150ebc4d2436ba52269264
nir: add builtin builder

also move some of the GLSL builtins over we will need for implementing
some OpenCL builtins

v2: replace NIR_IMM_FP by nir_imm_floatN_t in ported code
    fix up changes caused by swizzle rework

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Karol Herbst <kherbst@redhat.com>
src/compiler/Makefile.sources
src/compiler/nir/meson.build
src/compiler/nir/nir_builtin_builder.c [new file with mode: 0644]
src/compiler/nir/nir_builtin_builder.h [new file with mode: 0644]
src/compiler/spirv/vtn_glsl450.c