anv,intel: Enable nir_opt_large_constants for Vulkan
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 29 Jun 2018 05:44:43 +0000 (22:44 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 2 Jul 2018 19:09:50 +0000 (12:09 -0700)
commit06412bfc9869247f33b6bba8e256cf33f71f6973
tree9ae51aa0bfb137a804f9de0df661298c308c1e3e
parent70ce8804341479aba8115784d8dad1166315e402
anv,intel: Enable nir_opt_large_constants for Vulkan

According to RenderDoc, this shaves 99.6% of the run time off of the
ambient occlusion pass in Skyrim Special Edition when running under DXVK
and shaves 92% off the runtime for a reasonably representative frame.
When running the actual game, Skyrim goes from being a slide-show to a
very stable and playable framerate on my SKL GT4e machine.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/compiler/brw_compiler.h
src/intel/compiler/brw_nir.c
src/intel/vulkan/anv_device.c