i965: Don't set the "switch" flag on control flow instructions on Gen6+.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 13 Dec 2012 02:01:00 +0000 (18:01 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 10 Jun 2014 23:38:26 +0000 (16:38 -0700)
commit000f4a33c0359ed6b3c11aafa5f0cba1d6d91fea
tree01a476583e5e148d18b17b737c8396708098b5f3
parent3a439534de6d5331c1ec436d23a1a909f87c4660
i965: Don't set the "switch" flag on control flow instructions on Gen6+.

Thread switching on control flow instructions is a documented workaround
for Gen4-5 errata.  As far as I can tell, it hasn't been needed since
Sandybridge.  Thread switching is not free, so in theory this may help
performance slightly.

Flow control instructions with the "switch" flag cannot be compacted, so
removing it will make these instructions compactable.  (Of course, we
still have to implement compaction for flow control instructions...)

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_eu_emit.c