intel/compiler: Add scheduler deps for instructions that implicitly read g0
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 16 Apr 2018 23:32:41 +0000 (16:32 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 24 Apr 2018 18:31:21 +0000 (14:31 -0400)
commit0d5ce25c1ca23abc6d91538f4374a18509091060
tree38bfdf78d5efef6a4c2669da0bbbfb115a947e14
parentcd32a4e5f4239af79effcd907f1033fb4cde587c
intel/compiler: Add scheduler deps for instructions that implicitly read g0

Otherwise the scheduler can move the writes after the reads.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=95009
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=95012
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Tested-by: Mark Janes <mark.a.janes@intel.com>
Cc: Clayton A Craft <clayton.a.craft@intel.com>
Cc: mesa-stable@lists.freedesktop.org
src/intel/compiler/brw_ir_vec4.h
src/intel/compiler/brw_schedule_instructions.cpp