nir: Add pass to optimize intrinsics
authorMatt Turner <mattst88@gmail.com>
Thu, 22 Jun 2017 19:13:25 +0000 (12:13 -0700)
committerMatt Turner <mattst88@gmail.com>
Thu, 20 Jul 2017 23:56:49 +0000 (16:56 -0700)
commitd4c9d6a3b2cef577454d9c911fc96d5f678d9955
tree46a453be7aaa514f1605770d1f7b52d7c1bb9a2c
parentba2fbbf1c0dacfad45ad59b32de6297239c0f88d
nir: Add pass to optimize intrinsics

Specifically, constant fold intrinsics from ARB_shader_group_vote, but I
suspect it'll be useful for other things in the future.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/Makefile.sources
src/compiler/nir/nir.h
src/compiler/nir/nir_opt_intrinsics.c [new file with mode: 0644]
src/intel/compiler/brw_nir.c