mesa/src/intel
Jason Ekstrand f4ef34f207 intel/fs: Add an UNDEF instruction to avoid excess live ranges
With 8 and 16-bit types and anything where we have to use non-trivial
strides registersto deal with restrictions, we end up with things that
look like partial writes even though we don't care about any values in
the register except those written by that instruction.  This is
particularly important when dealing with loops because liveness sees
is_partial_write and the fact that an old version from a previous loop
iteration may be valid at that point and extends all purely partially
written values to the entire loop.

This commit adds a new UNDEF instruction which does nothing (the
generator doesn't emit anything) but which does a fake write to the
register.  This informs liveness that we don't care about any values
before that point so it won't consider those registers to be falsely
live.  We can safely emit UNDEF instructions for all SSA values that
come in from NIR and nearly all temporaries generated by various stages
of the compiler.  In particular, we need to insert UNDEF instructions
when we handle region restrictions because the newly allocated registers
are almost guaranteed to be partially written.

No shader-db changes.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110432
Reviewed-by: Matt Turner <mattst88@gmail.com>
2019-06-04 14:27:30 -05:00
..
blorp intel/blorp: Use the hardware op for CCS ambiguate on gen10+ 2019-05-30 13:49:48 -07:00
common intel/decoder: Use get_state_size() over guessed counts in more cases 2019-05-28 13:44:16 -07:00
compiler intel/fs: Add an UNDEF instruction to avoid excess live ranges 2019-06-04 14:27:30 -05:00
dev iris: Print binding tables when INTEL_DEBUG=bt 2019-06-03 14:14:45 -07:00
genxml intel/genxml: Update MI_ATOMIC genxml definition. 2019-04-29 21:19:59 +00:00
isl isl: Add restrictions to isl_surf_get_hiz_surf() 2019-05-14 16:23:12 +00:00
perf i965: fix icelake performance query enabling 2019-04-25 01:11:54 +00:00
tools intel/tools: Fix build with glibc < 2.27. 2019-05-13 11:05:48 -07:00
vulkan anv: Advertise support for VK_EXT_fragment_shader_interlock 2019-06-04 17:30:51 +00:00
Android.blorp.mk
Android.common.mk
Android.compiler.mk
Android.dev.mk
Android.genxml.mk
Android.isl.mk
Android.mk
Android.perf.mk
Android.vulkan.mk anv/android: fix missing dependencies issue during parallel build 2019-05-27 10:13:17 +03:00
Makefile.perf.am
Makefile.sources
meson.build