nir: add a pass for lowering (un)pack_double_2x32
authorConnor Abbott <connor.w.abbott@intel.com>
Thu, 12 Nov 2015 10:40:34 +0000 (11:40 +0100)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Mon, 11 Apr 2016 06:29:27 +0000 (08:29 +0200)
commita89c47415774fe9b5458a7ec7e072711e06201e6
treebba499e6801fc7ac3b62d0f2a3799faf8c0a8a81
parent663e6421df9bb94cf9b46bb0b41f0d5331aa02fe
nir: add a pass for lowering (un)pack_double_2x32

v2: Undo unintended change to the signature of
    nir_normalize_cubemap_coords (Iago).

v3: Move to compiler/nir (Iago)

v4: Remove Authors from copyright header (Michael Schellenberger)

v5 (Sam):
- Use nir_channel() and nir_ssa_for_alu_src() helpers (Jason)
- Inline lower_double_pack_instr() code into lower_double_pack_block()
  (Jason).
- Initialize nir_builder at lower_double_pack_impl() (Jason).

Signed-off-by: Iago Toral Quiroga <itoral@igalia.com>
Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/Makefile.sources
src/compiler/glsl/Makefile.sources
src/compiler/nir/Makefile.sources
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_double_packing.c [new file with mode: 0644]