nir: add nir_lower_samplers_as_deref pass
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 9 Jun 2017 09:35:25 +0000 (11:35 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 31 Jul 2017 12:55:29 +0000 (14:55 +0200)
commitbce6f9987522ebb585571f7333d47e41e1dead9b
tree51f5b98f206faefe05724a2cbfee37c4d76f8929
parentf1da97ef7a8408155d2627ef55092c2aa78c81ac
nir: add nir_lower_samplers_as_deref pass

This pass is a replacement for the nir_lower_samplers pass, which has the
advantage of keeping sampler references as derefs. This allows a unified
treatment of texture instructions and image intrinsics in the backend.
src/compiler/Makefile.sources
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_samplers_as_deref.c [new file with mode: 0644]
src/compiler/nir_types.cpp
src/compiler/nir_types.h