nir: add nir_lower_uniforms_to_ubo pass
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Sat, 20 May 2017 15:58:25 +0000 (17:58 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 31 Jul 2017 12:55:29 +0000 (14:55 +0200)
commite902ac326839e7720d4e1d9a19d0a9a1aa817f04
treead90d19804b19ed0ba42115a9412a06b0ceb2987
parentbce6f9987522ebb585571f7333d47e41e1dead9b
nir: add nir_lower_uniforms_to_ubo pass

This is a further lowering of default-block uniform loads that transforms
load_uniform intrinsics into load_ubo intrinsics. This simplifies the rest
of the backend.

v2: transform from load_uniform instead of straight from variables

Reviewed-by: Eric Anholt <eric@anholt.net>
src/compiler/Makefile.sources
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_uniforms_to_ubo.c [new file with mode: 0644]