OSDN Git Service

i965/fs: Handle negating immediates on MADs when propagating saturates
authorMatt Turner <mattst88@gmail.com>
Mon, 20 Nov 2017 22:24:57 +0000 (14:24 -0800)
committerMatt Turner <mattst88@gmail.com>
Tue, 21 Nov 2017 18:13:07 +0000 (10:13 -0800)
commita05af1f7b8f82a38513bba31f9573cd62d82f18d
treef815cd34f187acfeccf06fff7816877faaf01e17
parentce221cbbcf25238771b9a59e06ce4995e08c091e
i965/fs: Handle negating immediates on MADs when propagating saturates

MADs don't take immediate sources, but we allow them in the IR since it
simplifies a lot of things. I neglected to consider that case.

Fixes: 4009a9ead490 ("i965/fs: Allow saturate propagation to propagate
                      negations into MADs.")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=103616
Reported-and-Tested-by: Ruslan Kabatsayev <b7.10110111@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/intel/compiler/brw_fs_saturate_propagation.cpp