diff options
author | Samuel Pitoiset <[email protected]> | 2018-01-29 17:19:00 +0100 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2018-02-06 23:08:39 +0100 |
commit | e68562b94b79f5ce17f5804f8d7308faf57bd3f0 (patch) | |
tree | b3900a4674aa485ed0605c3ab96093149f2ba5f0 /src/compiler/Makefile.sources | |
parent | e2ea9e11910a10ae10d6491d913ab1d57f97a0d4 (diff) |
nir: add nir_opt_shrink_load pass
This is a very simple pass that just shrinks load_push_constant
intrinsics when some components are unused. For now, it can just
shrink vec4 to vec3, vec3 to vec2 and so on.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/compiler/Makefile.sources')
-rw-r--r-- | src/compiler/Makefile.sources | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/Makefile.sources b/src/compiler/Makefile.sources index d3f746f5f94..84dbc26d198 100644 --- a/src/compiler/Makefile.sources +++ b/src/compiler/Makefile.sources @@ -268,6 +268,7 @@ NIR_FILES = \ nir/nir_opt_move_comparisons.c \ nir/nir_opt_peephole_select.c \ nir/nir_opt_remove_phis.c \ + nir/nir_opt_shrink_load.c \ nir/nir_opt_trivial_continues.c \ nir/nir_opt_undef.c \ nir/nir_phi_builder.c \ |