intel/fs: Mark source 0 of bcsel as needing Boolean resolve
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 7 Jun 2019 22:45:03 +0000 (15:45 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 11 Jun 2019 19:12:07 +0000 (12:12 -0700)
commit39f4dc23a5af1b78a58905cf91d56441b59eb80a
tree73b8a9afe295662212a856a82264c5251abbf208
parentf9f89df8bc75d4446c6d6aa12d9390f72313cca7
intel/fs: Mark source 0 of bcsel as needing Boolean resolve

The other sources of the bcsel behave like the sources of an and or
other logical operation.  However, source zero behaves differently.
It is evaluated as a Boolean, so it needs to be resolved.

No shader-db changes, but the tests mentioned in the bug get a couple
instructions added back.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110857
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/intel/compiler/brw_nir_analyze_boolean_resolves.c